named

package
v3.11.7 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2022 License: Apache-2.0 Imports: 0 Imported by: 21

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Type

type Type uint8
const (
	TypeUnknown Type = iota
	TypeRequired
	TypeOptional
	TypeOptionalWithUseDefault
)

type Value

type Value struct {
	Name  string
	Value interface{}
	Type  Type
}

func Optional

func Optional(key string, value interface{}) Value

Optional returns Value with key as column name and value as destination Warning: value must double-pointed data destination

func OptionalWithDefault

func OptionalWithDefault(key string, value interface{}) Value

OptionalWithDefault returns Value with key as column name and value as destination If scanned YDB value is NULL - default type value will be applied to value destination Warning: value must single-pointed data destination

func Required

func Required(key string, value interface{}) Value

Required returns Value with key as column name and value as destination Warning: value must single-pointed data destination

Jump to

Keyboard shortcuts

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