fmt

package
v1.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 9, 2020 License: MIT, AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Errorf

func Errorf(format string, a ...interface{}) error

Errorf returnsan error object for the given format and values.

func Print

func Print(a ...interface{}) (n int, err error)

Print formats using the default formats for its operands and writes to standard output. Spaces are added between operands when neither is a string. It returns the number of bytes written and any write error encountered.

func Printf

func Printf(format string, a ...interface{}) (n int, err error)

Printf prints a format string filled with the given values.

func Println

func Println(a ...interface{}) (n int, err error)

Println formats using the default formats for its operands and writes to standard output. Spaces are always added between operands and a newline is appended. It returns the number of bytes written and any write error encountered.

func SRepeat

func SRepeat(char string, repeat int) string

SRepeat just repeats a character or string times <repeat>.

func Sprint

func Sprint(a ...interface{}) string

Sprint renders arguments in their default format ("%s"/"%d"/"%f"/"%U" for string/int/float/rune, respectively)

func Sprintf

func Sprintf(fmts string, args ...interface{}) string

Sprintf is a fmtless alternative to fmt.Sprintf that supports some of the most common subset of fmt usage.

func Sprintln

func Sprintln(a ...interface{}) string

Sprintln is just like Sprint but with a trailing newline.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL