feeder

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Default

type Default struct{}

Default feeder. It feeds the fields using default value if tag exists.

Example:

type Config struct {
	Host string `default:"localhost"`
	Port int `default:"8080"`
}

func (Default) Feed

func (f Default) Feed(structure interface{}) error

Feed feeds the structure with the default value.

Jump to

Keyboard shortcuts

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