Documentation ¶
Index ¶
- func ConvtKeyValuePairJson(m map[string]string) string
- func ConvtKeyValuePairString(m map[string]string) string
- func Do(err *error, fn func() (err error))
- func Eqaul(a error, b ...error) bool
- func ErrorCompose(a, b error) error
- func ErrorComposef(a, b error, format string, args ...interface{}) error
- func ErrorWithHandler(err error, handler ...func(err error)) bool
- func FromNullInt32(n sql.NullInt32) *int32
- func FromNullString(n sql.NullString) *string
- func FromNullTime(n sql.NullTime) *time.Time
- func HasError(err error) bool
- func IntervalSqrt(acc time.Duration, d time.Duration, max time.Duration, n int) time.Duration
- func MapContain(m map[string]interface{}, key string) bool
- func MapInt(m map[string]interface{}, key string) (int, bool)
- func MapMap(m map[string]interface{}, key string) (map[string]interface{}, bool)
- func MapString(m map[string]interface{}, key string) (string, bool)
- func MapValue(m map[string]interface{}, key string) interface{}
- func NewNullInt32(p *int32) sql.NullInt32
- func NewNullString(p *string) sql.NullString
- func NewNullTime(p *time.Time) sql.NullTime
- func NewUuid() uuid.UUID
- func NewUuidString() string
- func Stack(err error) string
- func TimeParse(s string) time.Time
- func WithDefaultNullString(a sql.NullString, b sql.NullString) sql.NullString
- type TestChapter
- type TestScenarios
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvtKeyValuePairJson ¶
func ConvtKeyValuePairString ¶
func ErrorCompose ¶
func ErrorComposef ¶
func ErrorWithHandler ¶
func FromNullInt32 ¶
func FromNullString ¶
func FromNullString(n sql.NullString) *string
func IntervalSqrt ¶
func MapContain ¶
func NewNullInt32 ¶
func NewNullString ¶
func NewNullString(p *string) sql.NullString
func NewUuidString ¶
func NewUuidString() string
func WithDefaultNullString ¶
func WithDefaultNullString(a sql.NullString, b sql.NullString) sql.NullString
Types ¶
type TestChapter ¶
type TestScenarios ¶
type TestScenarios []TestChapter
func (TestScenarios) Foreach ¶
func (scenarios TestScenarios) Foreach(fn func(error))
Source Files ¶
Click to show internal directories.
Click to hide internal directories.