values

package
v0.0.0-rc12 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OneofValueTypeCheckers

func OneofValueTypeCheckers() map[schema.Type]ValueTypeChecker

OneofValueTypeCheckers returns checkers permitting different representations for a particular YT type

TODO: TM-4130: switch to StrictValueTypeCheckers()

func StrictValueTypeCheckers

func StrictValueTypeCheckers() map[schema.Type]ValueTypeChecker

StrictValueTypeCheckers returns checkers permitting only the single correct representation for a particular YT type

Types

type ValueTypeChecker

type ValueTypeChecker func(interface{}) bool

ValueTypeChecker is a function which returns true if the passed value is represented properly - that is, in accordance with the requirements of the YT type this checker represents.

Jump to

Keyboard shortcuts

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