Help us shape the future of Go! Take the 2026 Go Developer Survey

util

package
v0.38.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2026 License: MIT 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, for 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, returning "{}" on failure — 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, or 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