Source File
comdef.go
Belonging Package
github.com/gookit/goutil/comdef
// Package comdef provide some common type or constant definitionspackage comdef// ToTypeFunc convert value to defined typetype ToTypeFunc[ any] func(any) (, error)// IntCheckFunc check functype IntCheckFunc func(val int) error// StrCheckFunc check functype StrCheckFunc func(val string) error// ToStringFunc try to convert value to string, return error on failtype ToStringFunc func(v any) (string, error)// SafeStringFunc safe convert value to stringtype SafeStringFunc func(v any) string
![]() |
The pages are generated with Golds v0.8.4. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |