CLI/HTTP goweb
mail.plcb.ca:/home/laplante/git/goweb
To compile and execute a program: goweb run program
To compile a program source into result: goweb compile source result
To execute a binary program: goweb run result
To compile and execute a program in debugging mode: goweb debug program
To get this help, goweb help
To execute an http server: goweb –config goweb.toml http-server &
If the command is not defined, execute run.
to specify a config file use: goweb –config filename and all the others commands
To execute goweb using shebang use – as in:
To extract Documentation from goweb file use goweb doc directory|file
To get http metrics:
Documentation must start with /–\n/ or /*–SPACE… / or //–SPACE comment or/—\n/ or /—SPACE… */ or //–SPACE comment With — the space before each line of the comments will be trim.
If you use shebang with a binary file make sure you edit the file with nvim -v shebang_file
shebang line must be terminated by ; even if they are no arguments
#!/Users/laplante/go/bin/goweb --config goweb.toml -- args ;
test
{{ 5*6; }}
#!/usr/bin/env -S goweb --config goweb.toml -- args ;
test
{{ 5*6; }}
An http server can be run with goweb. Definition are in the config file.
”`
goweb support a configuration file in toml format. Please refer to config for more informations.