pointer

package
v2.7.6 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package pointer provides utilities for pointer handling that aren't available in go. Feel free to add more pointerification functions for more types as you need them.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Duration

func Duration(d time.Duration) *time.Duration

Duration returns a pointer to its argument.

func Int

func Int(i int) *int

Int returns a pointer to its argument.

func Int64

func Int64(i int64) *int64

Int64 returns a pointer to its argument.

func String

func String(s string) *string

String returns a pointer to its argument.

func Time

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

Time returns a pointer to its argument.

Types

This section is empty.

Jump to

Keyboard shortcuts

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