fmtp

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2020 License: BSD-3-Clause Imports: 3 Imported by: 16

README

fmt

Plus to standard fmt package.

Godoc

// Printfln is similar to fmt.Printf but a newline is appended.
func Printfln(format string, a ...interface{}) (n int, err error) {}

// Fprintfln is similar to fmt.Fprintf but a newline is appended.
func Fprintfln(w io.Writer, format string, a ...interface{}) (n int, err error) {}

// Eprint is similar to fmt.Print but output to os.Stderr
func Eprint(a ...interface{}) (n int, err error) {}

LICENSE

BSD license

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func Eprint

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

Eprint is similar to fmt.Print but output to os.Stderr

func Eprintf

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

Eprintf is similar to fmt.Printf but output to os.Stderr

func Eprintfln

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

Eprintfln is similar to Printfln but output to os.Stderr

func Eprintln

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

Eprintln is similar to fmt.Println but output to os.Stderr

func Fprintfln

func Fprintfln(w io.Writer, format string, a ...interface{}) (n int, err error)

Fprintfln is similar to fmt.Fprintf but a newline is appended.

Example
var b bytes.Buffer

Fprintfln(&b, "Hello: %d", 1234)
Fprintfln(&b, "World: %s", "!")

fmt.Print(b.String())
Output:

Hello: 1234
World: !

func Printfln

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

Printfln is similar to fmt.Printf but a newline is appended.

Example
Printfln("Hello: %d", 1234)
Printfln("World: %s", "!")
Output:

Hello: 1234
World: !

Types

This section is empty.

Jump to

Keyboard shortcuts

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