goa is a Go library for designing and implementing REST microservices. It includes a DSL for describing APIs, a code generation tool called goagen, and runtime support libraries. goagen takes the API description and generates Go code including a controller scaffold, validation logic, documentation, and more. The generated code is organized across multiple packages for clear separation of concerns between the auto-generated and custom code.
1 of 24
Downloaded 12 times
More Related Content
goa Design first API Generation
1. CyberAgent, Inc. All Rights Reserved.
goa :: Design-first API Generation
2015 December 4th
Date : 2017 March 10 Presenter : Y.Sugiyama
3. Introduction Who are you?01
CyberAgent(2011~)
? Ameba Pigg
? Java, node.js, MongoDB
? Takusuta(Live Streaming)
? Golang(gin), node.js, python, MongoDB,and various on live streaming.
? Golang, node.js, a little Scala.
Yoshinori Sugiyama,age:36,github:syama666
5. goa has three parts What is goa?02
? a Go DSL for describing the microservice API
? a tool for generating code and documentation from design DSL
? a library to support the implementation of microservices
23. cool digest06
? Generating swagger docs.
? Generating validation-code, and scaffolding some.
? Output a better code than go-swagger -> https://github.com/go-
swagger/go-swagger
24. not cool digest06
? You need implements logic of convert from your model sturct to goa-
generated struct.
? If you want to customize the error response, you have to hack goa -
middleware.
https://github.com/goadesign/goa/issues/1076