Skip to content

kisom/GoNow

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GoNow

GoNow allows using Go like if were a script language.

Internally, it compiles and links the Go file; the executable is saved into a global directory if GOROOT or GOPATH is set, else it is saved in the local directory "*.go"; then, it is run. If that executable does not exist or its modified time is different than script's, then it's compiled again.

It works into a shared filesystem since it's created a directory for each target environment.

"GoNow" is specially useful for:

  • Learning
  • Testing of code snippets
  • Administration issues
  • Boot init of operating systems
  • Web developing; by example for the routing
  • Interfaces of database models

Installation

goinstall github.com/kless/GoNow/gonow

Operating instructions

gonow file.go

To run it using its name, insert in the first line of the Go file:

#!/usr/bin/env gonow

and set its executable bit:

chmod +x file.go

Licensing

Copyright 2010 The "GoNow" Authors
See file AUTHORS and CONTRIBUTORS (if any).

Licensed under BSD-2 Clause license.
See file LICENSE.


Generated by GoWizard

About

Tool to run Go source files automatically

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published