Go語言的顏色包:Color

jopen 9年前發布 | 20K 次閱讀 Color Google Go/Golang開發

Color 是用 Go 語言編寫的 ANSI Escape Codes 術語,你可以自定義屏幕的輸出顏色。

Color

標準顏色:

// Print with default helper functions
color.Cyan("Prints text in cyan.")
// A newline will be appended automatically
color.Blue("Prints %s in blue.", "text")
// These are using the default foreground colors
color.Red("We have red")
color.Magenta("And many others ..")

項目主頁:http://www.baiduhome.net/lib/view/home/1449151278467

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!