Documentation ¶
Overview ¶
Package fmt provides template functions for formatting strings.
Index ¶
- type Namespace
- func (ns *Namespace) Errorf(format string, a ...interface{}) string
- func (ns *Namespace) Erroridf(id, format string, a ...interface{}) string
- func (ns *Namespace) Print(a ...interface{}) string
- func (ns *Namespace) Printf(format string, a ...interface{}) string
- func (ns *Namespace) Println(a ...interface{}) string
- func (ns *Namespace) Warnf(format string, a ...interface{}) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Namespace ¶
type Namespace struct {
// contains filtered or unexported fields
}
Namespace provides template functions for the "fmt" namespace.
func (*Namespace) Errorf ¶ added in v0.30.1
Errorf formats according to a format specifier and logs an ERROR. It returns an empty string.
func (*Namespace) Erroridf ¶ added in v0.84.0
Erroridf formats according to a format specifier and logs an ERROR and an information text that the error with the given ID can be suppressed in config. It returns an empty string.
func (*Namespace) Printf ¶
Printf returns a formatted string representation of the passed arguments.
Click to show internal directories.
Click to hide internal directories.