gorun 执行运行 Go 源码 gorun

agolangf2015-04-06 16:00:00 • 1801 次点击    
这是一个分享于 2015-04-06 16:00:00 的项目,其中的信息可能已经有所发展或是发生改变。

gorun 是以脚本形式执行go程序代码的工具。

例如一个 go 的源文件:

#!/usr/bin/gorun

package main

func main() {
    println("Hello world!")
}

执行方法:

$ chmod +x hello.go
$ ./hello.go
Hello world!

gorun is a tool enabling one to put a "bang line" in the source code of a Go program to run it, or to run such a source code file explicitly. It was created in an attempt to make experimenting with Go more appealing to people used to Python and similar languages which operate most visibly with source code.Read More

Latest commit to the master branch on 3-15-2023
Download as zip
授权协议:
GPLv3
开发语言:
Google Go 查看源码»
操作系统:
Linux
1801 次点击  
加入收藏 微博
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传