optional

package
v0.10.5 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2024 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Convert_bool_To_optional_Bool

func Convert_bool_To_optional_Bool(in *bool, out *Bool, _ conversion.Scope) error

func Convert_int_To_optional_Int

func Convert_int_To_optional_Int(in *int, out *Int, _ conversion.Scope) error

func Convert_optional_Bool_To_bool

func Convert_optional_Bool_To_bool(in *Bool, out *bool, _ conversion.Scope) error

func Convert_optional_Int_To_int

func Convert_optional_Int_To_int(in *Int, out *int, _ conversion.Scope) error

func Convert_optional_String_To_string

func Convert_optional_String_To_string(in *String, out *string, _ conversion.Scope) error

func Convert_string_To_optional_String

func Convert_string_To_optional_String(in *string, out *String, _ conversion.Scope) error

func RestoreBool

func RestoreBool(previous, dst *Bool)

func RestoreInt

func RestoreInt(previous, dst *Int)

func RestoreString

func RestoreString(previous, dst *String)

Types

type Bool

type Bool *bool

Bool is a bool that can be unspecified. bools which are converted to optional.Bool during API conversion will be converted to nil if the value was previously false.

type Int

type Int *int

Int is an int that can be unspecified. ints which are converted to optional.Int during API conversion will be converted to nil if the value was previously 0. +optional.

type String

type String *string

String is a string that can be unspecified. strings which are converted to optional.String during API conversion will be converted to nil if the value was previously the empty string. +optional.

Jump to

Keyboard shortcuts

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