//
pkg.gl
Category
github.com/caixw/apidoc/v7
internal
mock
package
7.2.4
Repository:
https://github.com/caixw/apidoc.git
Documentation:
pkg.go.dev
Overview
Versions
2
Dependencies
25
Dependents
1
Files
1.3k SLOC
#
Functions
Load
Load 从本地或是远程加载文档内容.
New
New 声明 Mock 对象 msg 用于处理各类输出消息,仅在 ServeHTTP 中的消息才输出到 msg; d doc.APIDoc 实例,调用方需要保证该数据类型的正确性; indent 缩进字符串; servers 用于指定 d.Servers 中每一个服务对应的路由前缀; gen 生成随机数据的函数;.
#
Structs
GenOptions
GenOptions 生成随机数据的函数.