Excuse the basic question, I'm a bit of a newbie with Golang. I have started writing a restful api in go and have found lots of videos and articles on creating a rather simple api.
So far I have broken out the api into controllers and models for specific items like Users or Articles, and retrieving or adding data to the database based on the endpoints and returning json.
I am struggling to find any useful examples that go beyond creating basic crud endpoints. Does anyone have any good links that go into writing a more advanced api?
评论:
Tikiatua:
softwaregav:Hi there,
You could take a look at our scratch repository on https://github.com/dkfbasel/scratch. It provides a base repository structure and code to start medium sized golang projects.
Marcus Olsson has a pretty nice example using domain driven design. He also has some nice talks about it that can be found on YouTube.
