ptr

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package ptr provides helpers for the SDK's optional fields. The generated structs honour Apple's spec presence rules: required keys are value fields, optional keys are pointers — so callers set optional scalars with ptr.To.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func To

func To[T any](v T) *T

To returns a pointer to v.

func Value

func Value[T any](p *T) T

Value returns the value p points to, or the zero value when p is nil.

Types

This section is empty.

Jump to

Keyboard shortcuts

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