我如何在Go中编写Rest API服务-Golang开发

时间:2021-05-26 17:59:29
【文件属性】:
文件名称:我如何在Go中编写Rest API服务-Golang开发
文件大小:66KB
文件格式:ZIP
更新时间:2021-05-26 17:59:29
Golang Miscellaneous go-restapi-boilerplate这是我如何在go中编写“ json rest api服务器”的说明。 我写这本书是为了与不熟悉go的朋友分享,但我认为从社区也获得反馈非常好。go-restapi-boilerplate这是我如何在go中编写“ json rest api服务器”的解释。 我写这篇文章是为了与不熟悉go的朋友分享,但是我认为也能从社区中获得反馈是很棒的。 新手自己去,我不会说这是路要走。 但是在花了几个小时编写简单,易于管理的rest api之后,我对结果感到非常满意。 这包括极其简单的样板和openapi v3集成的示例(server gen,docum
【文件预览】:
go-restapi-boilerplate-master
----go.mod(664B)
----go.sum(46KB)
----Dockerfile(203B)
----spec()
--------path.yaml(2KB)
--------swagger.yaml(3KB)
--------sync_components.go(1KB)
--------spec.go(91B)
----README.md(6KB)
----api()
--------error.go(2KB)
--------user.go(2KB)
--------metrics.go(565B)
--------api.gen.go(5KB)
--------api.go(3KB)
--------config.go(1KB)
----ent()
--------runtime()
--------client.go(6KB)
--------example_test.go(833B)
--------user_create.go(3KB)
--------entc.go(436B)
--------swagger.yaml(348B)
--------ent.go(6KB)
--------tx.go(4KB)
--------enttest()
--------context.go(891B)
--------predicate()
--------user_update.go(6KB)
--------user()
--------privacy()
--------hook()
--------user_delete.go(3KB)
--------user.go(3KB)
--------generate.go(68B)
--------user_query.go(16KB)
--------mutation.go(10KB)
--------config.go(1KB)
--------migrate()
--------runtime.go(711B)
--------schema()
----.gitignore(4KB)
----deploy()
--------base()
--------prod()
----cmd()
--------api()

网友评论