/simple-go-api

An example of a simple API written in Go

Primary LanguageGoMIT LicenseMIT

Build an API in Go - PearlHacks Workshop by RedVentures

Ever wanted to learn how to code in Go? Interested in making an API for your Hackathon project? We've got you covered - come learn how to build APIs in Go with fellow Gophers!

Getting started

  1. Install Go! Instructions and downloads for Windows, Mac, and Linux can be found here: https://golang.org/dl/
  2. Make sure your GOPATH environment variable is set: https://github.com/golang/go/wiki/SettingGOPATH
  3. Install Postman: https://www.postman.com/downloads/

Learn more about RedVentures

Visit our careers site to learn about internship and job opportunities at RedVentures!

Connect with us!

How to run

git clone <repo>

In that directory:

go build .

go run .

Test via curl or Postman with base url http://localhost:8080