package ctfmt

import "github.com/daviddengcn/go-colortext/fmt"

Package ctfmt is a handful wrapping of go-colortext (ct) package and fmt package.

Index

Functions

func Print

func Print(cl ct.Color, bright bool, a ...interface{}) (n int, err error)

Print calls fmt.Print with foreground color set.

func Printf

func Printf(cl ct.Color, bright bool, format string, a ...interface{}) (n int, err error)

Printf calls fmt.Printf with foreground color set.

func Printfln

func Printfln(cl ct.Color, bright bool, format string, a ...interface{}) (n int, err error)

Printfln calls fmt.Printf and add an extra new-line char with foreground color set.

func Println

func Println(cl ct.Color, bright bool, a ...interface{}) (n int, err error)

Println calls fmt.Println with foreground color set.

Source Files

ctfmt.go

Version
v1.0.0 (latest)
Published
Mar 29, 2020
Platform
js/wasm
Imports
2 packages
Last checked
2 months ago

Tools for package owners.