Simple wrapper around go run to use go as a scripting language
$ goscript "fmt.Println("packages will automatically be imported from your $GOPATH")
GoScipt Type
type GoScript struct {
*exec.Cmd
}NewFromFile takes in a filePath of golang source and converts it into a GoScript type with an embedded exec.Cmd
func NewFromFile(sourcePath string, args ...string) (*GoScript, error)NewFromString takes in a string of golang source and converts into a GoScript type with an embedded exec.Cmd
func NewFromString(source string, args ...string) (*GoScript, error)Clean deletes the generated goscript tempfile
func (gs GoScript) Clean() errorFilePath returns the current GoScript's file path
func (gs GoScript) FilePath() string