pointers

package
v2.5.0 Latest Latest
Warning

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

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

Documentation

Overview

Package pointers provides helpers for pointer creation and conversions.

Use this package to reduce boilerplate in tests and DTO assembly while keeping pointer semantics explicit at call sites.

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