/usr/share/gocode/src/github.com/wsxiaoys/terminal/example/hello.go is in golang-github-wsxiaoys-terminal-dev 0.0~git20160513.0.0940f3f-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | package main
import (
"github.com/wsxiaoys/terminal"
"github.com/wsxiaoys/terminal/color"
)
func main() {
terminal.Stdout.Color("y").
Print("Hello world").Nl().
Reset().
Colorf("@{kW}Hello world\n")
color.Print("@rHello world")
}
|