pointers

package
v1.13.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: May 29, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package pointers provides utility functions for converting values to their pointer equivalents. This package simplifies working with pointer types in Go by providing convenient helper functions for common types like string, bool, int, int64, float64, and time.Time.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(b bool) *bool

Bool just return given b as a pointer

func Float64

func Float64(t float64) *float64

Float64 just return given t as a pointer

func Int

func Int(t int) *int

Int just return given t as a pointer

func Int64

func Int64(t int64) *int64

Int64 just return given t as a pointer

func String

func String(s string) *string

String just return given s as a pointer

func Time

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

Time just return given t as a pointer

Types

This section is empty.

Jump to

Keyboard shortcuts

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