entity

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Space      = " "
	Empty      = ""
	Dash       = "-"
	Dot        = "."
	EqualsSign = "="

	NewLine = '\n'
)

Variables

This section is empty.

Functions

func MergeKeys added in v0.0.5

func MergeKeys(dst, src map[string]any) map[string]any

func NotNilValues added in v0.0.6

func NotNilValues(values ...any) int

func Unique added in v0.0.3

func Unique[T comparable](in []T) []T

Types

type Command

type Command struct {
	Cmd  string
	Args []string
}

type DataFile added in v0.0.2

type DataFile struct {
	Template
	Data []byte
}

type FileProducer

type FileProducer interface {
	Get() (*DataFile, error)
}

type HTTPClientParams added in v0.0.6

type HTTPClientParams struct {
	URL         string
	Headers     map[string]string
	QueryParams map[string]string
}

type LocalFile added in v0.0.2

type LocalFile struct {
	Template
	LocalPath string
}

type Logger

type Logger interface {
	Infof(format string, args ...any)
	Errorf(format string, any ...any)
	Warnf(format string, any ...any)
	Debugf(format string, any ...any)
}

type RegexpChain added in v0.0.6

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

func NewRegexpChain added in v0.0.6

func NewRegexpChain(regexps ...string) *RegexpChain

func (*RegexpChain) MatchString added in v0.0.6

func (c *RegexpChain) MatchString(s string) bool

type RemoteFile

type RemoteFile struct {
	Template
	HTTPClientParams
}

type Template added in v0.0.6

type Template struct {
	Path     string
	Name     string
	ExecTmpl bool
}

Jump to

Keyboard shortcuts

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