package opt

import "git.sr.ht/~pingoo/stdx/opt"

package opt provides optional types. It can be useful for optional configuration paramteters

Index

Functions

func Bool

func Bool(v bool) *bool

func Int

func Int(i int) *int

func Int16

func Int16(i int16) *int16

func Int32

func Int32(i int32) *int32

func Int64

func Int64(i int64) *int64

func Int8

func Int8(i int8) *int8

func String

func String(str string) *string

func Time

func Time(t time.Time) *time.Time

func Uint

func Uint(i uint) *uint

func Uint16

func Uint16(i uint16) *uint16

func Uint32

func Uint32(i uint32) *uint32

func Uint64

func Uint64(i uint64) *uint64

func Uint8

func Uint8(i uint8) *uint8

Source Files

opt.go

Version
v0.0.0-20240218134121-094174641f6e (latest)
Published
Feb 18, 2024
Platform
linux/amd64
Imports
1 packages
Last checked
4 months ago

Tools for package owners.