Skip to content

How to Create a RESTful API With Only The Golang Standard Library

Notifications You must be signed in to change notification settings

arthurlee/golang-standard-lib-rest-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to Create a RESTful API With Only The Golang Standard Library

This is the code for the post How to Create a RESTful API With Only The Golang Standard Library. You can get the code of author's from github.

main function duties

  1. Create a database connection
  2. Create a caching connection for authentication
  3. Create a mux
  4. Load in our controllers
  5. Create our routes with the mux and controllers
  6. Start the server

Install go packages

  • go get -u github.com/go-redis/redis
  • go get github.com/lib/pq

Run Postgress in Mac

About

How to Create a RESTful API With Only The Golang Standard Library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages