stringly

package
v0.0.0-...-5550303 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Field

type Field = field.Field[string]

Field represents something with a 'name' and a 'value'.

func Bool

func Bool(name string, value bool) Field

Bool returns a field with a `bool` value.

func Duration

func Duration(name string, value time.Duration) Field

Duration returns a field with a time.Duration value.

func Error

func Error(name string, value error) Field

Error returns a field with an `error` value.

func Int

func Int(name string, value int) Field

Int returns a field with an `int` value.

func Int16

func Int16(name string, value int16) Field

Int16 returns a field with an `int16` value.

func Int32

func Int32(name string, value int32) Field

Int32 returns a field with an `int32` value.

func Int64

func Int64(name string, value int64) Field

Int64 returns a field with an `int64` value.

func Int8

func Int8(name string, value int8) Field

Int8 returns a field with an `int`8 value.

func Ord

func Ord(name string, value uint) Field

Ord returns a field with an ordinal `uint` value.

func Ord16

func Ord16(name string, value uint16) Field

Ord16 returns a field with an ordinal `uint16` value.

func Ord32

func Ord32(name string, value uint32) Field

Ord32 returns a field with an ordinal `uint32` value.

func Ord64

func Ord64(name string, value uint64) Field

Ord64 returns a field with an ordinal `uint64` value.

func Ord8

func Ord8(name string, value uint8) Field

Ord8 returns a field with an ordinal `uint8` value.

func String

func String(name string, value string) Field

String returns a field with a `string` value.

func Stringer

func Stringer(name string, value fmt.Stringer) Field

String returns a field with a `string` value that comes from a fmt.Stringer.

func Time

func Time(name string, value time.Time) Field

Time returns a field with a time.Time value.

func Uint

func Uint(name string, value uint) Field

Uint returns a field with an `uint` value.

func Uint16

func Uint16(name string, value uint16) Field

Uint16 returns a field with an `uint16` value.

func Uint32

func Uint32(name string, value uint32) Field

Uint32 returns a field with an `uint32` value.

func Uint64

func Uint64(name string, value uint64) Field

Uint64 returns a field with an `uint64` value.

func Uint8

func Uint8(name string, value uint8) Field

Uint8 returns a field with an `uint8` value.

Jump to

Keyboard shortcuts

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