Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More colors with hex colors #26

Closed
shineoos opened this issue Sep 11, 2020 · 2 comments
Closed

More colors with hex colors #26

shineoos opened this issue Sep 11, 2020 · 2 comments
Assignees
Labels
windows windows ENV

Comments

@shineoos
Copy link

shineoos commented Sep 11, 2020

Using hex colors I can't use two different colors on the same line (Windows 10)

@inhere inhere self-assigned this Sep 11, 2020
@inhere
Copy link
Member

inhere commented Sep 11, 2020

hi, please paste your code examples :)

@shineoos
Copy link
Author

package main

import (
	"fmt"
	"github.com/gookit/color"
	"time"
)

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

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

@inhere inhere added the windows windows ENV label Sep 12, 2020
@inhere inhere closed this as completed in f7ee41b Sep 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
windows windows ENV
Projects
None yet
Development

No branches or pull requests

2 participants