go的接口

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

     

posted on 2021-07-02 10:17  星星眨着眼  阅读(37)  评论(0编辑  收藏  举报

导航