param

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Field

type Field[T any] struct {
	FieldLike
	Value   T
	Null    bool
	Present bool
	Raw     any
}

Field is a wrapper used for all values sent to the API, to distinguish zero values from null or omitted fields.

It also allows sending arbitrary deserializable values.

To instantiate a Field, use the helpers exported from the package root: `F()`, `Null()`, `Raw()`, etc.

func (Field[T]) String

func (f Field[T]) String() string

type FieldLike

type FieldLike interface {
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

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