reflx

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseBool

func ParseBool(value reflect.Value, s string) error

func ParseComplex

func ParseComplex(value reflect.Value, s string) error

func ParseFloat

func ParseFloat(value reflect.Value, s string) error

func ParseInt

func ParseInt(value reflect.Value, s string) error

func ParseString

func ParseString(value reflect.Value, s string) error

func ParseUint

func ParseUint(value reflect.Value, s string) error

Types

type ParseFunc

type ParseFunc func(reflect.Value, string) error

ParserFunc - Parses a string and sets the result to a Value

type ParserManager

type ParserManager interface {
	// Parser - Get the parser for the given type
	Parser(t reflect.Type) (ParseFunc, bool)

	// SetParser - define a parser for a type
	SetParser(t reflect.Type, f ParseFunc)
}

func NewParserManager

func NewParserManager() ParserManager

Jump to

Keyboard shortcuts

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