Some useful examples for Go golang
# cd httpmuxmiddleware
# openssl req -newkey rsa:2048 -nodes -subj "/C=CA/ST=British Columbia/L=Vancouver/O=My Company Name/CN=erp.local" -keyout erp.local.key -out erp.local.csr
# go run httpmuxmiddleware/httpmuxmiddleware.go
# go run webgzip/webgzip.go
# go run webstaticfile/webstaticfile.go
# go run convmapjson/convmapjson.go
# go run convstructjson/convstructjson.go
# go run decodejson/decodejson.go
# go run twofactortotpsec51/twofactortotpsec51.go
Then, go to:
More info: https://github.com/sec51/twofactor
# go run twofactortotppquerna/twofactortotppquerna.go
Then, go to:
More info: https://github.com/pquerna/otp
# go run jsonwebtoken/jsonwebtoken.go
Then, go to http://127.0.0.1/
More info: https://github.com/dgrijalva/jwt-go
# go run datetimeconv/datetimeconv.go 127.0.0.1
# go run loopthroughstruct/loopthroughstruct.go
# go run htmltemplate/htmltemplate.go
# go run htmltemplatemultiple/htmltemplatemultiple.go
# go run printmessage/printmessage.go
# go run consoleargument/consoleargument.go test.txt A B C
# go run connectmysql/connectmysql.go
# go run connectmysqlmodel/connectmysqlmodel.go
# go run httppost/httppost.go
# go run runexternalcommand/runexternalcommand.go