ptr

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package ptr implements functions to take the pointer of values.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(b bool) *bool

Bool converts a bool into a bool pointer.

func Float32

func Float32(f float32) *float32

Float32 converts a float32 into a float32 pointer.

func Float64

func Float64(f float64) *float64

Float64 converts a float64 into a float64 pointer.

func Int

func Int(i int) *int

Int converts an int into an int pointer.

func Int64

func Int64(i int64) *int64

Int64 converts an int64 into an int64 pointer.

func String

func String(s string) *string

String converts a string into a string pointer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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