box

package
v1.14.3 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2020 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Package box provides boxing helpers for scalar values. This package exists to help the transition form pointer based fields to `null` fields

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(b bool) *bool

func Byte

func Byte(b byte) *byte

func Float32 added in v1.6.0

func Float32(n float32) *float32

func Float64 added in v1.6.0

func Float64(n float64) *float64

func Int

func Int(n int) *int

func Int16

func Int16(n int16) *int16

func Int32

func Int32(n int32) *int32

func Int64

func Int64(n int64) *int64

func Int8

func Int8(n int8) *int8

func NonEmpty added in v1.8.0

func NonEmpty(s string) *string

func String

func String(s string) *string

func Time added in v1.5.0

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

func Uint

func Uint(n uint) *uint

func Uint16

func Uint16(n uint16) *uint16

func Uint32

func Uint32(n uint32) *uint32

func Uint64

func Uint64(n uint64) *uint64

func Uint8

func Uint8(n uint8) *uint8

Types

This section is empty.

Jump to

Keyboard shortcuts

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