structtags

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Field

type Field struct {
	Name          []string
	DefaultString string
	Description   string
	Parser        ParseFieldFunc
	Value         reflect.Value
}

func ParseStruct

func ParseStruct(v reflect.Value, name []string) ([]Field, error)

func (Field) MarshalText

func (f Field) MarshalText() ([]byte, error)

func (Field) UnmarshalText

func (f Field) UnmarshalText(buf []byte) error

type ParseFieldFunc

type ParseFieldFunc func(v reflect.Value, str string) error

Jump to

Keyboard shortcuts

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