Documentation ¶ Index ¶ func GetOperation(pathItem *openapi3.PathItem, method string) *openapi3.Operation func Load(uStr, username, password string) (*openapi3.T, error) func LoadFile(path string) (*openapi3.T, error) func Merge(base, toMerge *openapi3.T) *openapi3.T func Save(def *openapi3.T, path string) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func GetOperation ¶ added in v0.9.0 func GetOperation(pathItem *openapi3.PathItem, method string) *openapi3.Operation func Load ¶ func Load(uStr, username, password string) (*openapi3.T, error) func LoadFile ¶ func LoadFile(path string) (*openapi3.T, error) func Merge ¶ func Merge(base, toMerge *openapi3.T) *openapi3.T Merge 将toMerge合并到base中,注意,本方法并不对base进行拷贝,所有操作会反馈到base的传入对象中 因为用于独立的merge命令,因此暂不考虑复制base,且暂时只是拷贝paths func Save ¶ func Save(def *openapi3.T, path string) error Types ¶ This section is empty. Source Files ¶ View all Source files load.go merge.go save.go util.go Click to show internal directories. Click to hide internal directories.