ffield

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrMissingFile = errors.New("missing file")

Functions

This section is empty.

Types

type F

type F struct {
	Key         string
	Type        reflect.Type
	Default     *string
	Optional    bool
	FileParser  *FilePaser
	ValueParser *ValueParser
}

func New

func New(field reflect.StructField) (F, error)

func (F) FParam

func (self F) FParam() types.FParam

func (F) Parse

func (self F) Parse(src proto.IRawRequest) (res reflect.Value, err error)

type FilePaser

type FilePaser struct {
	// contains filtered or unexported fields
}

func (*FilePaser) Parse

func (self *FilePaser) Parse(src proto.IRawRequest) (reflect.Value, error)

type ValueParser

type ValueParser struct {
	// contains filtered or unexported fields
}

func (*ValueParser) Parse

func (self *ValueParser) Parse(src proto.IRawRequest) (reflect.Value, error)

Jump to

Keyboard shortcuts

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