corylanou / tns-restful-json-api

This is the code repository that goes along with the "TheNewStack" article for RESTful JSON API post

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Same issue for me ./main.go:10: undefined: NewRouter

mgiardinelli opened this issue · comments

@mgiardinelli

The original author needs to clarify this for new users.

But in order to run this example. Simple do:

go build

If you do

ls

You'll see a binary file. Just run it (it created api for me), so just run:

./api

and look at localhost:8080

Fixed in #4