builder

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractArgs

func ExtractArgs(typeObj types.TYPE, decoded map[string]interface{}) (types.Config, error)

ExtractArgs function to map to types builder which implement types.Config e.g. if typeObj = types.INT it should map decoded to builder that implement types.Config interface

Types

type Builder

type Builder interface {
	Initiate(config types.Config) error
	Build(...string) string
	Validate() error
}

func Factory

func Factory(dt types.TYPE) (Builder, error)

Factory is returns struct which implement Builder interface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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