pointer

package
v2.0.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2016 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package pointer provides helper method to quickly define pointer from basic go types

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(v bool) *bool

Bool creates a pointer to a boolean from a boolean value

func DumpPStruct

func DumpPStruct(s interface{}, multiline bool) string

DumpStruct prints the content of a struct of pointers

func Float32

func Float32(v float32) *float32

Float32 creates a pointer to a float32 from a float32 value

func Float64

func Float64(v float64) *float64

Float64 creates a pointer to a float64 from a float64 value

func Int

func Int(v int) *int

Int creates a pointer to an int from an int value

func Int16

func Int16(v int16) *int16

Int16 creates a pointer to an int16 from an int16 value

func Int32

func Int32(v int32) *int32

Int32 creates a pointer to an int32 from an int32 value

func Int64

func Int64(v int64) *int64

Int64 creates a pointer to an int64 from an int64 value

func Int8

func Int8(v int8) *int8

Int8 creates a pointer to an int8 from an int8 value

func String

func String(v string) *string

String creates a pointer to a string from a string value

func Time

func Time(v time.Time) *time.Time

Time creates a pointer to a time.Time from a time.Time value

func Uint

func Uint(v uint) *uint

Uint creates a pointer to an unsigned int from an unsigned int value

func Uint16

func Uint16(v uint16) *uint16

Uint16 creates a pointer to an unsigned int from an unsigned int16 value

func Uint32

func Uint32(v uint32) *uint32

Uint32 creates a pointer to an unsigned int from an unsigned int32 value

func Uint64

func Uint64(v uint64) *uint64

Uint64 creates a pointer to an unsigned int from an unsigned int64 value

func Uint8

func Uint8(v uint8) *uint8

Uint8 creates a pointer to an unsigned int from an unsigned int8 value

Types

This section is empty.

Jump to

Keyboard shortcuts

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