Link Search Menu Expand Document

GOSP2GO

NAME

gosp2go - compile a Go Server Page to Go code

SYNOPSIS

gosp2go [options] [input_file.gosp] [-- [gosp-server options]]

DESCRIPTION

gosp2go is typically invoked by the Go Server Pages Apache module to compile a Go Server Page to a plugin that can be launched with gosp-server. However, it can also be invoked directly, for example to process the output of a CGI program.

OPTIONS

-b, --build

Compile the generated Go code to a plugin

-r, --run

Both compile and, using gosp-server, execute the generated Go code

-t num, --max-top=num

Allow at most num <?go:top ... ?> blocks per file [default: 1]

-o file, --output=file

Write output to file file ("-" = standard output, the default); the file type depends on whether --build, --run, or neither is also specified

-g file, --go=file

Use file as the Go compiler [default: go]

-a list, --allowed=list

Specify a comma-separated list of allowed Go imports; if ALL (the default), allow all imports; if NONE, allow no imports

--version

Output the gosp2go version number and exit

--help

Output gosp2go usage information and exit

SEE ALSO

gosp-server(1)

AUTHOR

Scott Pakin, scott+gosp@pakin.org