fmtforward

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeFormat

func MakeFormat(s fmt.State, verb rune) (justV bool, format string)

MakeFormat reproduces the format currently active in fmt.State and verb. This is provided because Go's standard fmt.State does not make the original format string available to us.

If the return value justV is true, then the current state was found to be %v exactly; in that case the caller can avoid a full-blown Printf call and use just Print instead to take a shortcut.

func ReproducePrintf

func ReproducePrintf(w io.Writer, s fmt.State, verb rune, arg interface{})

ReproducePrintf calls fmt.Print/fmt.Printf on the argument based on the details present in the fmt.State and writes to the io.Writer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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