https://github.com/beanwei/colorprint
打印出有颜色的字,仅对windows下的控制台有用
https://github.com/beanwei/colorprint
colorprint golang windows
Last synced: 15 days ago
JSON representation
打印出有颜色的字,仅对windows下的控制台有用
- Host: GitHub
- URL: https://github.com/beanwei/colorprint
- Owner: BeanWei
- Created: 2018-05-28T07:37:21.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-05-28T07:45:43.000Z (about 7 years ago)
- Last Synced: 2024-12-28T01:23:03.566Z (6 months ago)
- Topics: colorprint, golang, windows
- Language: Go
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 在windows终端中输出颜色字体
## 测试
```
$ go run test.go
package mainimport (
"github.com/BeanWei/colorprint"
)func main() {
colorprint.Print("Hello\n", colorprint.Deepblue)
colorprint.Print("Hello\n", colorprint.Green)
colorprint.Print("Hello\n", colorprint.Skyblue)
colorprint.Print("Hello\n", colorprint.Red)
colorprint.Print("Hello\n", colorprint.Purple)
colorprint.Print("Hello\n", colorprint.Yellow)
colorprint.Print("Hello\n", colorprint.White)
}
```## 效果
