File: issue26.go

package info (click to toggle)
golang-github-gookit-color 1.5.4-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,708 kB
  • sloc: sh: 101; makefile: 7
file content (18 lines) | stat: -rw-r--r-- 317 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package main

import (
	"fmt"
	"time"

	"github.com/gookit/color"
)

func main() {
	green := color.HEX("#00FF62").Sprintf("Hello world!")
	now := time.Now().Format("02-01-2006 15:04:05.000")

	fmt.Printf("[%v] %v\n", now, green)

	color.Printf("[%v] %v\n", now, green)
	color.HEX("#00FF62").Println("Hello world!")
}