Skip to content

Template for building web services in golang. Uses gorilla/mux as a router/dispatcher. This includes routing, logging, json serialization

License

Notifications You must be signed in to change notification settings

mikemenaker/go-service-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

go-service-template

Template for building web services in golang. Uses gorilla/mux as a router/dispatcher.

This includes routing, logging, json serialization

How to run

go run main.go works well if your application or service has a single file, but for a more complex project with lots of files then you'll have to start using the proper go build tool and run the compiled executable.

go build && service.exe

go build will generate an executable called service.exe (on windows) and then run that executable by typing service.exe.

The app will bind itself to port 3030 (defined in main.go).

About

Template for building web services in golang. Uses gorilla/mux as a router/dispatcher. This includes routing, logging, json serialization

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages