package
0.2.0-alpha.14
Repository: https://github.com/onexstack/onex.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# README

客户端规范

  • 每个客户端至少包含以下4个文件:
    • client.go: Interface定义,New, Functions
    • doc.go: 包doc.go文件
    • helper.go: 类似于util.go文件
    • model.go: 模型定义文件
    • options.go: 命令行参数定义,需要满足IOptions接口
  • client.go:
    • GetClient: 获取global impl实例
    • 使用sync.Once,确保只实例化一次