Documentation
¶
Index ¶
- Variables
- func BetterGo(path string)
- func BetterGoEx(path string)
- func Body() string
- func Call(f func())
- func Check[T any](result T)
- func Check2[T any](ret T, err error) (r1 T)
- func Check2Bool[T any](ret T, ok bool) (r1 T)
- func Check2Ignore[T any](ret T, err error) (r1 T)
- func Check3[T1 any, T2 any](ret1 T1, ret2 T2, err error) (r1 T1, r2 T2)
- func Check3Bool[T1 any, T2 any](ret1 T1, ret2 T2, ok bool) (r1 T1, r2 T2)
- func Check4[T1 any, T2 any, T3 any](ret1 T1, ret2 T2, ret3 T3, err error) (r1 T1, r2 T2, r3 T3)
- func Check4Bool[T1 any, T2 any, T3 any](ret1 T1, ret2 T2, ret3 T3, ok bool) (r1 T1, r2 T2, r3 T3)
- func Check5[T1 any, T2 any, T3 any, T4 any](ret1 T1, ret2 T2, ret3 T3, ret4 T4, err error) (r1 T1, r2 T2, r3 T3, r4 T4)
- func Check5Bool[T1 any, T2 any, T3 any, T4 any](ret1 T1, ret2 T2, ret3 T3, ret4 T4, ok bool) (r1 T1, r2 T2, r3 T3, r4 T4)
- func Check6[T1 any, T2 any, T3 any, T4 any, T5 any](ret1 T1, ret2 T2, ret3 T3, ret4 T4, ret5 T5, err error) (r1 T1, r2 T2, r3 T3, r4 T4, r5 T5)
- func Check6Bool[T1 any, T2 any, T3 any, T4 any, T5 any](ret1 T1, ret2 T2, ret3 T3, ret4 T4, ret5 T5, ok bool) (r1 T1, r2 T2, r3 T3, r4 T4, r5 T5)
- func Check7[T1 any, T2 any, T3 any, T4 any, T5 any, T6 any](ret1 T1, ret2 T2, ret3 T3, ret4 T4, ret5 T5, ret6 T6, err error) (r1 T1, r2 T2, r3 T3, r4 T4, r5 T5, r6 T6)
- func Check7Bool[T1 any, T2 any, T3 any, T4 any, T5 any, T6 any](ret1 T1, ret2 T2, ret3 T3, ret4 T4, ret5 T5, ret6 T6, ok bool) (r1 T1, r2 T2, r3 T3, r4 T4, r5 T5, r6 T6)
- func CheckEof[T any](result T) (isEof bool)
- func CheckIgnore(err any)
- func CheckNil(ptr any)
- func CreatDirectory(dir string) bool
- func Diff(oldName string, old []byte, newName string, new []byte) []byte
- func DumpRequest(req *http.Request, body bool) string
- func DumpResponse(resp *http.Response, body bool) string
- func FixUncPath(path string) string
- func GetLastReturnType(assignStmt *ast.AssignStmt) (lastReturnType string, b bool)
- func Hex[T constraints.Integer | []byte | *bytes.Buffer](title string, msg T) string
- func HexDump(title string, b []byte)
- func HexInteger[T constraints.Integer](msg T) string
- func Info(title string, msg ...any)
- func IsAndroid() bool
- func IsLinux() bool
- func IsWindows() bool
- func Json(title string, msg ...any)
- func MarshalJson(title string, msg any)
- func Message() string
- func Reason() (reason string)
- func Request(Request *http.Request, body bool)
- func Response(Response *http.Response, body bool)
- func SetDebug(debug bool)
- func Struct(msg any)
- func Success(title string, msg ...any)
- func Todo(body string)
- func Trace(title string, msg ...any)
- func TruncateLogFile()
- func Warning(title string, msg ...any)
- func WriteGoFileWithDiff[T []byte](path string, data T)
Constants ¶
This section is empty.
Variables ¶
View Source
var RuntimePrefixesToFilter = []string{
"runtime.",
"testing.",
"github.com/ddkwork/golibrary/mylog.callWithHandler",
"github.com/ddkwork/golibrary/mylog.Call",
}
Functions ¶
func BetterGoEx ¶ added in v0.0.50
func BetterGoEx(path string)
func Check2Bool ¶ added in v0.0.6
func Check2Ignore ¶ added in v0.0.6
func Check3Bool ¶ added in v0.0.6
func Check4Bool ¶ added in v0.0.6
func Check5Bool ¶ added in v0.0.6
func Check6Bool ¶ added in v0.0.6
func Check7Bool ¶ added in v0.0.7
func CheckIgnore ¶ added in v0.0.8
func CheckIgnore(err any)
func CreatDirectory ¶ added in v0.0.23
func FixUncPath ¶ added in v0.0.23
func GetLastReturnType ¶ added in v0.0.31
func GetLastReturnType(assignStmt *ast.AssignStmt) (lastReturnType string, b bool)
func HexInteger ¶
func HexInteger[T constraints.Integer](msg T) string
func MarshalJson ¶
func TruncateLogFile ¶
func TruncateLogFile()
func WriteGoFileWithDiff ¶ added in v0.0.23
Types ¶
This section is empty.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.