fatih / color

Color package for Go (golang)
https://pkg.go.dev/github.com/fatih/color
MIT License
7.3k stars 615 forks source link

downloading #220

Closed sec13b closed 8 months ago

sec13b commented 8 months ago

┌──(kali㉿kali)-[~/Desktop] └─$ go get github.com/fatih/color go: go.mod file not found in current directory or any parent directory. 'go get' is no longer supported outside a module. To build and install a command, use 'go install' with a version, like 'go install example.com/cmd@latest' For more information, see https://golang.org/doc/go-get-install-deprecation or run 'go help get' or 'go help install'.

┌──(kali㉿kali)-[~/Desktop] ┌──(kali㉿kali)-[~/Desktop] └─$ go install github.com/fatih/color@latest go: downloading github.com/fatih/color v1.16.0 go: downloading github.com/mattn/go-colorable v0.1.13 go: downloading github.com/mattn/go-isatty v0.0.20 go: downloading golang.org/x/sys v0.14.0 package github.com/fatih/color is not a main package

┌──(kali㉿kali)-[~/Desktop]

m5x5 commented 8 months ago

Have you tried initializing the module with "go mod init"?

sec13b commented 8 months ago

no, just run "go install github.com/fatih/color@latest"

thank you for reply.