shared

package
v0.2.11 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2022 License: Apache-2.0 Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Elem added in v0.2.0

func Elem(rType reflect.Type) reflect.Type

func KeysOf added in v0.2.0

func KeysOf(value string, removeUnderscores bool) []string

KeysOf creates keys based on given value using different strategies i.e. ToUpper, ToLower.

func MatchField added in v0.2.0

func MatchField(rType reflect.Type, name string, sourceCase format.Case) *xunsafe.Field

Types

type BuiltInKey added in v0.2.0

type BuiltInKey string

BuiltInKey represents keys that are provided as parameters for every view.View in view.Session

const (
	//DataViewName represents View.DbName parameter
	DataViewName BuiltInKey = "session.View.DbName"
	//SubjectName represents Subject parameter
	SubjectName BuiltInKey = "session.Subject"
)

type Errors added in v0.2.0

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

Errors collect errors, supports parallel errors collecting.

func NewErrors added in v0.2.0

func NewErrors(size int) *Errors

NewErrors creates and allocates errors collector with given size

func (*Errors) AddError added in v0.2.0

func (r *Errors) AddError(err error, index int)

AddError add error on given index

func (*Errors) Append added in v0.2.0

func (r *Errors) Append(err error)

Append appends error.

func (*Errors) Error added in v0.2.0

func (r *Errors) Error() error

Error returns first encounter error if any

type Reference added in v0.2.0

type Reference struct {
	Ref string `json:",omitempty" yaml:"ref,omitempty"`
}

Reference wraps Ref, objects with Reference can be build based on other object of the same type.

Jump to

Keyboard shortcuts

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