Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rosbit/color-log
output message with color simplely
https://github.com/rosbit/color-log
Last synced: about 6 hours ago
JSON representation
output message with color simplely
- Host: GitHub
- URL: https://github.com/rosbit/color-log
- Owner: rosbit
- License: mit
- Created: 2022-09-22T06:44:17.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-05-04T03:33:59.000Z (over 1 year ago)
- Last Synced: 2024-06-20T12:38:16.038Z (5 months ago)
- Language: Go
- Size: 74.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# simple color log
### Install
The package is fully go-getable, so, just type
`go get github.com/rosbit/color-log`
to install.
### Usage
```go
package mainimport (
"github.com/rosbit/color-log"
)func main() {
clog.Info("info message")
clog.Infof("%s", "info message")
clog.Warn("warn message")
clog.Warnf("%s", "warn message")
clog.Error("error message")
clog.Errorf("%s", "error message")
}
```### Test
![test](color.png)