ptr

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package ptr provides generic pointer helpers for tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(v bool) *bool

Bool returns a pointer to the given bool value.

func Date

func Date(year int, month time.Month, day int) time.Time

Date returns a UTC time for the given year, month, and day.

func Int64

func Int64(v int64) *int64

Int64 returns a pointer to the given int64 value.

func String

func String(v string) *string

String returns a pointer to the given string value.

func Time

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

Time returns a pointer to the given time.Time value.

Types

This section is empty.

Jump to

Keyboard shortcuts

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