Documentation ¶
Index ¶
- func MustSetUp(respProvider RespProvider, msgFilePaths []string, options ...Option)
- func Seal(code string, data interface{}, msgArgs ...interface{}) (string, error)
- func SealFully(code, msg string, data interface{}, msgArgs ...interface{}) (string, error)
- func SetUp(respProvider RespProvider, msgFilePaths []string, options ...Option) error
- type Option
- type RespProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustSetUp ¶
func MustSetUp(respProvider RespProvider, msgFilePaths []string, options ...Option)
Types ¶
type RespProvider ¶
type RespProvider func(code, msg string, data interface{}) interface{}
RespProvider
@return 建议是个结构体实例 && 加上json tag
Click to show internal directories.
Click to hide internal directories.