helpers

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 17, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultFieldsExtractor = &FieldsExtractor{}

Functions

func ExtractFieldsJSON

func ExtractFieldsJSON(i any) []string

func JoinPartsURL

func JoinPartsURL(parts ...PartURL) string

Types

type FieldsExtractor

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

func (*FieldsExtractor) Fields

func (e *FieldsExtractor) Fields(tag string, i any) []string

type PartURL

type PartURL struct {
	Value string
	Skip  bool
}

type URLParamJSON

type URLParamJSON struct {
	Data any `json:"-" url:"-"`
}

func (URLParamJSON) EncodeValues

func (p URLParamJSON) EncodeValues(key string, v *url.Values) error

func (URLParamJSON) IsEmpty

func (p URLParamJSON) IsEmpty() bool

func (URLParamJSON) MarshalJSON

func (p URLParamJSON) MarshalJSON() ([]byte, error)

Jump to

Keyboard shortcuts

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