util

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2026 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package util provides small helper functions shared across provider packages.

Index

Constants

View Source
const AllResources = uint64(math.MaxUint32)

AllResources is a query limit large enough to fetch every resource of a type in one call. Used by relationship resolvers that need all resources in memory.

Variables

This section is empty.

Functions

func MustJSON

func MustJSON(v any) string

MustJSON marshals v to a JSON string. Returns "{}" if marshalling fails — this should never happen for well-formed SDK response structs.

func Sv

func Sv(p *string) string

Sv dereferences a string pointer, returning "" for nil.

func TimeRFC3339

func TimeRFC3339(t *time.Time) *string

TimeRFC3339 formats a *time.Time as an RFC3339 string pointer. Returns nil when t 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