30. NAME:
gin - A live reload utility for Go web applications.
USAGE:
gin [global options] command [command options] [arguments...]
VERSION:
0.0.0
COMMANDS:
run, r Run the gin proxy in the current working directory
env, e Display environment variables set by the .env file
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--port, -p '3000' port for the proxy server
--appPort, -a '3001' port for the Go web server
--bin, -b 'gin-bin' name of generated binary file
--path, -t '.' Path to watch files from
--help, -h show help
--version, -v print the version
34. query := "INSERT INTO person (first_name, last_name, email) VALUES
(:first_name, :last_name, :email)"
tx.NamedExec(query, &Person{"Jane", "Citizen", "jane.citzen@example.com"})
people := []Person{}
db.Select(&people, "SELECT * FROM person ORDER BY first_name ASC")
36. mux := pat.New()
n := negroni.Classic()
n.UseHandler(mux)
c := cors.New(n)
c.AllowHeader("x-authorization")
c.ExposeHeader("x-pagination")
http.ListenAndServe(":3000", c)