File: hello.go

package info (click to toggle)
golang-github-wsxiaoys-terminal 0.0~git20160513.0.0940f3f-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, bullseye-backports, forky, sid, trixie
  • size: 80 kB
  • sloc: makefile: 5
file content (15 lines) | stat: -rw-r--r-- 243 bytes parent folder | download | duplicates (4)
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")
}