structutil

package
v1.24.0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2023 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FillNil

func FillNil(data any)

func FillNilExceptDeprecated

func FillNilExceptDeprecated(data any)

func FillNilSlices

func FillNilSlices(data any) error

FillNilSlices sets default value on slices that are still nil.

func SetDefaults

func SetDefaults(data any)

SetDefaults sets default values on a struct, based on the default annotation.

Types

This section is empty.

Jump to

Keyboard shortcuts

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