refs

package
v0.0.0-...-43c1654 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package refs provides small helpers for converting between values and their pointers (and back), used to model optional fields across the GraphQL, storage, and proto layers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolValue

func BoolValue(r *bool) bool

BoolValue returns the value of the given bool ref

func Int64Value

func Int64Value(r *int64) int64

Int64Value returns the value of the given bool ref

func NewBoolRef

func NewBoolRef(v bool) *bool

NewBoolRef returns a reference to a bool with given value

func NewInt64Ref

func NewInt64Ref(v int64) *int64

NewInt64Ref returns a reference to a int64 with given value

func NewStringRef

func NewStringRef(v string) *string

NewStringRef returns a reference to a string with given value

func StringValue

func StringValue(r *string, defaultValue ...string) string

StringValue returns the value of the given string ref

Types

This section is empty.

Jump to

Keyboard shortcuts

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