Documentation ¶
Overview ¶
Package fmt provides template functions for formatting strings.
Index ¶
- type Namespace
- func (ns *Namespace) Errorf(format string, args ...any) string
- func (ns *Namespace) Erroridf(id, format string, args ...any) string
- func (ns *Namespace) Errormf(m any, format string, args ...any) string
- func (ns *Namespace) Print(args ...any) string
- func (ns *Namespace) Printf(format string, args ...any) string
- func (ns *Namespace) Println(args ...any) string
- func (ns *Namespace) Warnf(format string, args ...any) string
- func (ns *Namespace) Warnmf(m any, format string, args ...any) 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 ¶
Errorf formats args according to a format specifier and logs an ERROR. It returns an empty string.
func (*Namespace) Erroridf ¶
Erroridf formats args 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 string representation of args formatted with the layouut in format.
Click to show internal directories.
Click to hide internal directories.