schema

package
v0.0.0-...-70fd0a4 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package schema is used to derive types from YAML source. For more information see shared schema package.

Index

Constants

View Source
const (
	MergeKey = schema.MergeKey
)

Variables

This section is empty.

Functions

func FromBoolean

func FromBoolean(val bool) string

func FromFloat

func FromFloat(val float64) string

func FromInteger

func FromInteger(val int64) string

func FromTimestamp

func FromTimestamp(val time.Time) string

func FromUnsignedInteger

func FromUnsignedInteger(val uint64) string

func IsBinary

func IsBinary(n ast.Node) bool

func IsBoolean

func IsBoolean(n ast.Node) bool

func IsFloat

func IsFloat(n ast.Node) bool

func IsInteger

func IsInteger(n ast.Node) bool

func IsMergeKey

func IsMergeKey(n ast.Node) bool

func IsNull

func IsNull(n ast.Node) bool

func IsTimestamp

func IsTimestamp(n ast.Node) bool

func IsUnsignedInteger

func IsUnsignedInteger(n ast.Node) bool

func ToBoolean

func ToBoolean(src string) (bool, error)

func ToFloat

func ToFloat(src string, bitSize int) (float64, error)

func ToInteger

func ToInteger(src string, bitSize int) (int64, error)

func ToTimestamp

func ToTimestamp(src string) (t time.Time, err error)

func ToUnsignedInteger

func ToUnsignedInteger(src string, bitSize int) (uint64, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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