ptr

package
v0.0.0-...-875a40c Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func String

func String(s string) *string

String returns a pointer to the given string. Example: ptr.String("hello") Returns: *string

func Time

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

Time returns a pointer to the given time. Example: ptr.Time(time.Now()) Returns: *time.Time

func UUID

func UUID(id uuid.UUID) *uuid.UUID

Int returns a pointer to the given int. Example: ptr.Int(42) Returns: *int

Types

This section is empty.

Jump to

Keyboard shortcuts

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