Help us shape the future of Go! Take the 2026 Go Developer Survey

pointerto

package
v0.5.24 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 License: Apache-2.0 Imports: 0 Imported by: 28

Documentation

Overview

Package pointerto provides functions for simple pointer wrapping: type -> *type.

After moving to Go 1.18+ this should be replaced (with deprecation) with a single generic function.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(src bool) *bool

Bool returns pointer to given bool value.

func Int

func Int(src int) *int

Int returns pointer to given int value.

func String

func String(src string) *string

String returns pointer to given string value.

Types

This section is empty.

Jump to

Keyboard shortcuts

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