types

package
v0.0.0-...-3cc3ff2 Latest Latest
Warning

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

Go to latest
Published: May 17, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeFromString

func DecodeFromString(raw string, typed Type) (interface{}, error)

DecodeFromString decodes the given property from string.

Types

type ErrUnknownType

type ErrUnknownType string

ErrUnknownType is returned when unable to recognize provided data type.

func (ErrUnknownType) Error

func (e ErrUnknownType) Error() string

type Type

type Type string

Type represents a value type definition.

const (
	Double   Type = "double"
	Float    Type = "float"
	Int64    Type = "int64"
	Uint64   Type = "uint64"
	Int32    Type = "int32"
	Fixed64  Type = "fixed64"
	Fixed32  Type = "fixed32"
	Bool     Type = "bool"
	String   Type = "string"
	Array    Type = "array"
	Message  Type = "message"
	Bytes    Type = "bytes"
	Uint32   Type = "uint32"
	Enum     Type = "enum"
	Sfixed32 Type = "sfixed32"
	Sfixed64 Type = "sfixed64"
	Sint32   Type = "sint32"
	Sint64   Type = "sint64"
	Unknown  Type = "unknown"
	OneOf    Type = "oneOf"
)

Spec types.

Jump to

Keyboard shortcuts

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