# gorun **Repository Path**: xucs007/gorun ## Basic Information - **Project Name**: gorun - **Description**: Small utility to directly run single-file go source, like a shell script. 直接运行单文件的go源码,象shell脚本一样。 - **Primary Language**: Go - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-01-07 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## Usage: You put gorun under /usr/bin, make it executable, then you can directly run single-file go source file (with first line as: #!/usr/bin/gorun), like to run a shell script. It is good to run some quick test / script. I found this solution on some internet forums. It can be adjusted a little to use at other languages such as V etc. 把 gorun 设为可执行,放到 /usr/bin下面, 就可以把(单文件的) go源码象 shell脚本一样运行了(源码第一行写为: #!/usr/bin/gorun). 这是在网上某论坛里妙手偶得的。稍改一下,也可以用到其它语言,如 V 等。