Giter Site home page Giter Site logo

gosh's Introduction

gosh

说明

gosh能使运行.go文件如同运行脚本文件一样。

使用

可以在要运行的.go文件开头加入shebang行,如:

#!/path/to/gosh

这样的话,以下两种方式都可以运行:

./gosh ./hello.go
chmod +x hello.go
./hello.go

如果不加入,那么只能使用这种方法运行:

./gosh ./hello.go

传递参数只需在后面附上即可。重定向输入输出也如普通的程序一样。

注意事项

要编译的.go文件、编译后的二进制文件均会放在/tmp下,具体路径即为/tmp/+原路径。

程序通过比较.go文件的修改时间来判断是否需要重新编译。

gosh's People

Contributors

lab-zjt avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.