https://github.com/howz1t/goutils
https://github.com/howz1t/goutils
Last synced: 7 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/howz1t/goutils
- Owner: HOWZ1T
- License: mit
- Created: 2019-08-08T02:43:10.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-08-08T02:55:44.000Z (almost 7 years ago)
- Last Synced: 2023-03-06T09:43:14.742Z (over 3 years ago)
- Language: Go
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Simple Utility Code
Simple utility code that I use in my go projects.
# Utils by package
- log
- `func GetLevel() Level`
- `func GetFMT() string`
- `func GetIoStreams() []io.Writer`
- `func SetLevel(level Level)`
- `func SetIOStreams(streams []io.Writer)`
- `func SetFMT(fmt string)`
- `func AddStream(stream io.Writer)`
- `func RemoveStream(stream io.Writer) error`
- `func Delete()`
- `func Fatal(format string, a ...interface{}) (n int, err error)`
- `func Error(format string, a ...interface{}) (n int, err error)`
- `func Warning(format string, a ...interface{}) (n int, err error)`
- `func Info(format string, a ...interface{}) (n int, err error)`
- `func Debug(format string, a ...interface{}) (n int, err error)`
- reflect
- `func IsFunction(v interface{}) bool`
- `func GetFunctionName(v interface{}) string`