Required

package
v0.0.0-...-83b4391 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendNotNil

func AppendNotNil(missingFields *[]string, key string)

func ArrayString

func ArrayString(origin map[string]interface{}, path string, missingFields *[]string, defaultValue []string) (value []string, isValid bool)

func Bool

func Bool(origin map[string]interface{}, path string, missingFields *[]string, defaultValue bool) (value bool, isValid bool)

func Date

func Date(origin map[string]interface{}, path string, missingFields *[]string, defaultValue time.Time) (value time.Time, isValid bool)

func Float64

func Float64(origin map[string]interface{}, path string, missingFields *[]string, defaultValue float64) (value float64, isValid bool)

func Int

func Int(origin map[string]interface{}, path string, missingFields *[]string, defaultValue int) (value int, isValid bool)

func InterfaceArray

func InterfaceArray(origin map[string]interface{}, path string, missingFields *[]string) (value []map[string]interface{}, isValid bool)

func MapStringInterface

func MapStringInterface(origin map[string]interface{}, path string, missingFields *[]string, defaultValue map[string]interface{}) (value map[string]interface{}, isValid bool)

func ProcessMissingFieldsArray

func ProcessMissingFieldsArray(missingFields []string, strType string) error

func String

func String(origin map[string]interface{}, path string, missingFields *[]string, defaultValue string) (value string, isValid bool)

func UUID

func UUID(origin map[string]interface{}, path string, missingFields *[]string, defaultValue uuid.UUID) (value uuid.UUID, isValid bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

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