How do I connect a backend server in go lang to angularjs? I know angularjs communicates with go via $http or $resource services but what part of the go code links communicates with angular once all the data structs have been made? Would this be the encoded/marshalled json or do we create some kind of route…
I am a newbie looking to start this project after studying angular and go but this is the part i don’t understand - what is the end point from go that angulars $resource or $http service links with?
You have to create your endpoint on the server.
Look at example_ServeMux_Handle for and example on how to create an endpoint.
After you understand that, you can have a look at frameworks that will help you build things much quickly, look for rest api golang or something similar on Google.
Here’s a very simple example I used for a talk on doing OAuth in AngularJS.
I used a Go server for the example. It’s hardly complete but it should give
you an idea. (It’s also a bit old, it uses Angular 1.3, but should still be
sufficient to give you the idea.)