Documentation ¶
Index ¶
- func AnyError(args ...interface{}) error
- func ErrorFunc(f func(v interface{}))
- func FileExists(file string) bool
- func Must(args ...interface{})
- func MustAnyByteSlice(args ...interface{}) []byte
- func MustAnyString(args ...interface{}) string
- func MustBool(args ...interface{}) bool
- func MustByteSlice(args ...interface{}) []byte
- func MustError(args ...interface{}) error
- func MustInitFile(file string) io.ReadCloser
- func MustNotNil[T any](args ...interface{}) T
- func MustOpenFile(file string) io.WriteCloser
- func MustReadFile(path string) []byte
- func MustString(args ...interface{}) string
- func MustTrue(args ...interface{}) bool
- func MustVal[T any](rule func(T) bool, args ...interface{}) T
- func Optional(args ...interface{}) bool
- func PanicFunc(f func(v interface{}))
- func ReadFile(path string) ([]byte, error)
- func UrlGet(url string) (io.ReadCloser, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FileExists ¶
func MustAnyByteSlice ¶
func MustAnyByteSlice(args ...interface{}) []byte
func MustAnyString ¶
func MustAnyString(args ...interface{}) string
func MustByteSlice ¶
func MustByteSlice(args ...interface{}) []byte
func MustInitFile ¶
func MustInitFile(file string) io.ReadCloser
func MustNotNil ¶
func MustNotNil[T any](args ...interface{}) T
func MustOpenFile ¶
func MustOpenFile(file string) io.WriteCloser
func MustReadFile ¶
func MustString ¶
func MustString(args ...interface{}) string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.