Documentation ¶
Overview ¶
Package zlsgo is golang daily development of some commonly used functions set
See https://docs.73zls.com/zlsgo/#/
znet(Web development) ttps://pkg.go.dev/github.com/sohaha/zlsgo/znet
ztype(Type correlation) ttps://pkg.go.dev/github.com/sohaha/zlsgo/ztype
zpool(Goroutine pool) https://pkg.go.dev/github.com/sohaha/zlsgo/zpool
Index ¶
- type TestUtil
- func (u *TestUtil) Equal(expected, actual interface{}) bool
- func (u *TestUtil) EqualExit(expected, actual interface{})
- func (u *TestUtil) EqualNil(actual interface{})
- func (u *TestUtil) EqualTrue(actual interface{})
- func (u *TestUtil) Fatal(v ...interface{})
- func (u *TestUtil) GetCallerInfo() string
- func (u *TestUtil) Log(v ...interface{})
- func (u *TestUtil) Logf(format string, args ...interface{})
- func (u *TestUtil) NoError(err error, exit ...bool) bool
- func (u *TestUtil) PrintMyName() string
- func (u *TestUtil) Run(name string, f func(tt *TestUtil))
- func (u *TestUtil) T() *testing.T
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TestUtil ¶
type TestUtil struct {
// contains filtered or unexported fields
}
TestUtil Test aid
func (*TestUtil) EqualExit ¶ added in v0.0.19
func (u *TestUtil) EqualExit(expected, actual interface{})
EqualExit EqualExit
func (*TestUtil) EqualNil ¶ added in v0.0.21
func (u *TestUtil) EqualNil(actual interface{})
EqualNil EqualNil
func (*TestUtil) EqualTrue ¶ added in v0.0.21
func (u *TestUtil) EqualTrue(actual interface{})
EqualTrue EqualTrue
func (*TestUtil) GetCallerInfo ¶ added in v0.0.19
GetCallerInfo GetCallerInfo
Directories ¶
Path | Synopsis |
---|---|
Package zarray provides array operations
|
Package zarray provides array operations |
Package zcache cache operation
|
Package zcache cache operation |
Package zcli quickly build cli applications
|
Package zcli quickly build cli applications |
Package zfile file and path operations in daily development
|
Package zfile file and path operations in daily development |
Package zhttp provides http client related operations
|
Package zhttp provides http client related operations |
Package zjson json data read and write operations
|
Package zjson json data read and write operations |
Package zlog provide daily log service
|
Package zlog provide daily log service |
Package znet provides web service
|
Package znet provides web service |
Package zpprof provides a register for zweb framework to use net/http/pprof easily.
|
Package zpprof provides a register for zweb framework to use net/http/pprof easily. |
Package zreflect provides reflection tools
|
Package zreflect provides reflection tools |
Package zshell use a simple way to execute shell commands
|
Package zshell use a simple way to execute shell commands |
Package zstring provides String related operations
|
Package zstring provides String related operations |
Package ztime provides time related operations
|
Package ztime provides time related operations |
cron
Package cron emulate linux crontab
|
Package cron emulate linux crontab |
Package ztype provides Variable Type Related Operations
|
Package ztype provides Variable Type Related Operations |
Package zutil daily development helper functions
|
Package zutil daily development helper functions |
daemon
Package daemon program is installed as a system service to achieve process daemon
|
Package daemon program is installed as a system service to achieve process daemon |
Package zvalid data verification
|
Package zvalid data verification |
Click to show internal directories.
Click to hide internal directories.