go的接口

时间:2021-07-02 16:17:44   收藏:0   阅读:0

1、直接执行

     app.go --type a

     对于这种形式可以采用flag的形式进行,参考:

 wordPtr := flag.String("word", "foo", "a string")

     https://studygolang.com/articles/25754?fr=sidebar

2、restful接口可以采用gin框架

     https://www.jianshu.com/p/98965b3ff638

     

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!