refs

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2022 License: MIT Imports: 17 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllIndividualItemsCount added in v0.6.8

func AllIndividualItemsCount(first *Collection, collections ...*Collection) int

func CompileAnyItemsToCsvStringDefault added in v0.8.6

func CompileAnyItemsToCsvStringDefault(
	references ...interface{},
) string

CompileAnyItemsToCsvStringDefault

if references empty or len 0 then empty string returned.

Final join whole lines with the joiner given (... joiner item)

Formats :

  • isIncludeQuote && !isIncludeSingleQuote = "'%v'" will be added

func LengthOfEachItems added in v0.5.4

func LengthOfEachItems(manyCollections [][]ref.Value) int

func LengthOfEachItemsPtr added in v0.5.4

func LengthOfEachItemsPtr(manyCollections *[]*[]*ref.Value) int

func MergeReferences added in v0.8.3

func MergeReferences(
	existingReferences []ref.Value,
	newReferences ...ref.Value,
) []ref.Value

func PrependReferences added in v0.8.3

func PrependReferences(
	isClone bool,
	appendingItems []ref.Value,
	prependingItems ...ref.Value,
) []ref.Value

func QuickCompileString added in v0.8.3

func QuickCompileString(
	joiner string,
	quickReferences ...QuickReference,
) (line string)

func QuickCompileStringDefaultEachLine added in v0.8.3

func QuickCompileStringDefaultEachLine(
	quickReferences ...QuickReference,
) (line string)

func QuickCompileStringDefaultInLine added in v0.8.3

func QuickCompileStringDefaultInLine(
	quickReferences ...QuickReference,
) (line string)

func QuickCompileStrings added in v0.8.3

func QuickCompileStrings(
	quickReferences ...QuickReference,
) (lines []string)

Types

type Collection

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

func Default added in v1.0.5

func Default() *Collection

func Empty

func Empty() Collection

func EmptyPtr added in v0.7.9

func EmptyPtr() *Collection

func New

func New(capacity int) *Collection

func New2 added in v0.9.5

func New2() *Collection

func New4 added in v0.9.5

func New4() *Collection

func NewClone added in v0.9.4

func NewClone(
	items ...ref.Value,
) *Collection

func NewDirectItem added in v0.3.9

func NewDirectItem(varName string, val interface{}) *Collection

func NewExistingCollectionPlusAddition added in v0.5.4

func NewExistingCollectionPlusAddition(
	existingReferences *Collection,
	newReferences ...ref.Value,
) *Collection

func NewExistingPlusAddition added in v0.5.4

func NewExistingPlusAddition(
	existingReferences []ref.Value,
	newReferences ...ref.Value,
) *Collection

func NewFromDataModelPtr added in v0.4.0

func NewFromDataModelPtr(model *CollectionDataModel) *Collection

func NewUsingBasicErrWrap added in v0.9.6

func NewUsingBasicErrWrap(
	basicErrWrap errcoreinf.BasicErrWrapper,
) *Collection

func NewUsingCollection added in v0.6.8

func NewUsingCollection(
	isCloneSingleItems bool,
	first *Collection,
	items ...*Collection,
) *Collection

func NewUsingInfo added in v1.1.0

func NewUsingInfo(info *coretaskinfo.Info) *Collection

func NewUsingInfoPayloadAny added in v1.1.0

func NewUsingInfoPayloadAny(
	info *coretaskinfo.Info,
	payloadAny interface{},
) *Collection

func NewUsingMany added in v0.5.4

func NewUsingMany(
	manyCollections ...[]ref.Value,
) *Collection

func NewUsingMap added in v0.9.6

func NewUsingMap(
	itemsMap map[string]interface{},
) *Collection

func NewUsingReferencers added in v0.9.6

func NewUsingReferencers(
	references ...errcoreinf.Referencer,
) *Collection

func NewUsingRefs added in v0.6.8

func NewUsingRefs(
	isClone bool,
	items ...ref.Value,
) *Collection

func NewUsingRefsOrNil added in v0.7.9

func NewUsingRefsOrNil(
	items ...ref.Value,
) *Collection

func NewUsingValues added in v0.9.4

func NewUsingValues(
	items ...ref.Value,
) *Collection

func NewWithItem

func NewWithItem(capacity int, varName string, val interface{}) *Collection

func (*Collection) Add

func (it *Collection) Add(
	name string,
	val interface{},
) *Collection

func (*Collection) AddBytes added in v1.0.3

func (it *Collection) AddBytes(
	name string,
	rawBytes []byte,
) *Collection

func (*Collection) AddBytesIf added in v1.0.3

func (it *Collection) AddBytesIf(
	isAdd bool,
	name string,
	rawBytes []byte,
) *Collection

func (*Collection) AddCollection added in v0.6.8

func (it *Collection) AddCollection(
	collection *Collection,
) *Collection

func (*Collection) AddCollectionCloned added in v0.6.8

func (it *Collection) AddCollectionCloned(
	collections ...*Collection,
) *Collection

func (*Collection) AddCollectionIf added in v1.0.4

func (it *Collection) AddCollectionIf(
	isAdd bool,
	collection *Collection,
) *Collection

func (*Collection) AddCollections added in v0.9.2

func (it *Collection) AddCollections(
	collections ...*Collection,
) *Collection

func (*Collection) AddEnums added in v1.0.3

func (it *Collection) AddEnums(
	name string,
	basicEnumer enuminf.BasicEnumer,
) *Collection

func (*Collection) AddHashMap added in v1.0.3

func (it *Collection) AddHashMap(
	collectionMap map[string]string,
) *Collection

func (*Collection) AddIf added in v1.0.1

func (it *Collection) AddIf(
	isAdd bool,
	name string,
	val interface{},
) *Collection

func (*Collection) AddInfo added in v1.0.5

func (it *Collection) AddInfo(
	infoRef *coretaskinfo.Info,
) *Collection

func (*Collection) AddInfoWithPayloadAny added in v1.0.5

func (it *Collection) AddInfoWithPayloadAny(
	infoRef *coretaskinfo.Info,
	payloadsAny interface{},
) *Collection

func (*Collection) AddInfoWithPayloads added in v1.0.5

func (it *Collection) AddInfoWithPayloads(
	infoRef *coretaskinfo.Info,
	payloads []byte,
) *Collection

func (*Collection) AddJsonResult added in v1.0.3

func (it *Collection) AddJsonResult(
	name string,
	jsonResult *corejson.Result,
) *Collection

func (*Collection) AddManyNulls added in v1.0.6

func (it *Collection) AddManyNulls(
	nullObjects ...interface{},
) *Collection

func (*Collection) AddMap

func (it *Collection) AddMap(
	collectionMap map[string]interface{},
) *Collection

func (*Collection) AddNull added in v1.0.6

func (it *Collection) AddNull(
	nullObject interface{},
) *Collection

func (*Collection) AddPayloadBytes added in v1.0.3

func (it *Collection) AddPayloadBytes(
	payloads []byte,
) *Collection

func (*Collection) AddPayloadBytesIf added in v1.0.3

func (it *Collection) AddPayloadBytesIf(
	isAdd bool,
	payloads []byte,
) *Collection

func (*Collection) AddPayloadWrapper added in v1.0.3

func (it *Collection) AddPayloadWrapper(
	name string,
	payloadWrapper *corepayload.PayloadWrapper,
) *Collection

func (*Collection) AddReferencer added in v0.9.6

func (*Collection) AddReferences added in v0.9.6

func (it *Collection) AddReferences(
	references ...errcoreinf.Referencer,
) errcoreinf.ReferenceCollectionDefiner

func (*Collection) AddStrings added in v1.0.3

func (it *Collection) AddStrings(
	name string,
	lines ...string,
) *Collection

func (*Collection) AddStringsIf added in v1.0.3

func (it *Collection) AddStringsIf(
	isAdd bool,
	name string,
	lines ...string,
) *Collection

func (*Collection) AddVarVal added in v0.9.6

func (it *Collection) AddVarVal(
	varName string, val interface{},
) errcoreinf.ReferenceCollectionDefiner

func (*Collection) Adds

func (it *Collection) Adds(
	refs ...ref.Value,
) *Collection

func (*Collection) AddsByCloningItems added in v0.7.9

func (it *Collection) AddsByCloningItems(
	refs ...ref.Value,
) *Collection

func (*Collection) AddsIf added in v0.8.6

func (it *Collection) AddsIf(
	isAdd bool,
	refs ...ref.Value,
) *Collection

func (*Collection) AddsPtr added in v0.3.9

func (it *Collection) AddsPtr(
	refs ...*ref.Value,
) *Collection

func (*Collection) AddsPtrByCloningItems added in v0.7.9

func (it *Collection) AddsPtrByCloningItems(
	refs ...*ref.Value,
) *Collection

func (*Collection) AsJsonContractsBinder added in v0.8.7

func (it *Collection) AsJsonContractsBinder() corejson.JsonContractsBinder

func (*Collection) AsJsonMarshaller added in v0.4.0

func (it *Collection) AsJsonMarshaller() corejson.JsonMarshaller

func (*Collection) AsJsonParseSelfInjector added in v0.4.0

func (it *Collection) AsJsonParseSelfInjector() corejson.JsonParseSelfInjector

func (*Collection) AsJsoner added in v0.4.0

func (it *Collection) AsJsoner() corejson.Jsoner

func (Collection) Clone added in v0.7.9

func (it Collection) Clone() Collection

func (*Collection) CloneNewDefiner added in v0.9.6

func (it *Collection) CloneNewDefiner() errcoreinf.ReferenceCollectionDefiner

func (*Collection) ClonePtr added in v0.1.9

func (it *Collection) ClonePtr() *Collection

func (*Collection) Collection added in v0.0.4

func (it *Collection) Collection() []ref.Value

func (*Collection) Compile added in v0.9.6

func (it *Collection) Compile() string

func (*Collection) ConcatNew added in v0.6.8

func (it *Collection) ConcatNew(
	isSingleItemsClone bool,
	collections ...*Collection,
) *Collection

func (*Collection) ConcatNewUsingItems added in v1.0.3

func (it *Collection) ConcatNewUsingItems(
	items ...ref.Value,
) *Collection

func (*Collection) Count added in v0.9.6

func (it *Collection) Count() int

func (*Collection) Dispose added in v0.7.9

func (it *Collection) Dispose()

func (*Collection) DynamicMap added in v0.9.6

func (it *Collection) DynamicMap() enumimpl.DynamicMap

func (*Collection) HasAnyItem added in v0.9.6

func (it *Collection) HasAnyItem() bool

func (*Collection) IsEmpty

func (it *Collection) IsEmpty() bool

func (*Collection) IsEqual added in v0.0.4

func (it *Collection) IsEqual(
	another *Collection,
) bool

func (*Collection) IsNull added in v0.7.9

func (it *Collection) IsNull() bool

func (*Collection) Items added in v0.9.2

func (it *Collection) Items() []ref.Value

func (*Collection) Json added in v0.4.0

func (it *Collection) Json() corejson.Result

func (*Collection) JsonModel added in v0.4.0

func (it *Collection) JsonModel() []ref.Value

func (*Collection) JsonModelAny added in v0.4.0

func (it *Collection) JsonModelAny() interface{}

func (*Collection) JsonParseSelfInject added in v0.4.0

func (it *Collection) JsonParseSelfInject(
	jsonResult *corejson.Result,
) error

func (*Collection) JsonPtr added in v0.7.9

func (it *Collection) JsonPtr() *corejson.Result

func (*Collection) Length

func (it *Collection) Length() int

func (*Collection) List added in v0.9.2

func (it *Collection) List() []ref.Value

func (*Collection) MapStringAny added in v0.9.6

func (it *Collection) MapStringAny() map[string]interface{}

func (*Collection) MapStringString added in v0.9.6

func (it *Collection) MapStringString() map[string]string

func (*Collection) MarshalJSON added in v0.4.0

func (it *Collection) MarshalJSON() ([]byte, error)

func (*Collection) ParseInjectUsingJson added in v0.4.0

func (it *Collection) ParseInjectUsingJson(
	jsonResult *corejson.Result,
) (*Collection, error)

func (*Collection) ParseInjectUsingJsonMust added in v0.4.0

func (it *Collection) ParseInjectUsingJsonMust(
	jsonResult *corejson.Result,
) *Collection

ParseInjectUsingJsonMust Panic if error

func (*Collection) ReferencerCollection added in v0.9.6

func (it *Collection) ReferencerCollection() []errcoreinf.Referencer

func (*Collection) ReferencesList added in v0.9.6

func (it *Collection) ReferencesList() []errcoreinf.Referencer

func (*Collection) ReflectSetTo added in v0.9.6

func (it *Collection) ReflectSetTo(
	toPointer interface{},
) error

func (*Collection) Serialize added in v0.9.6

func (it *Collection) Serialize() ([]byte, error)

func (*Collection) SerializeMust added in v0.9.6

func (it *Collection) SerializeMust() (jsonBytes []byte)

func (Collection) String

func (it Collection) String() string

func (*Collection) Strings

func (it *Collection) Strings() []string

func (*Collection) ToNonPtr added in v1.0.3

func (it *Collection) ToNonPtr() Collection

func (Collection) ToPtr added in v1.0.3

func (it Collection) ToPtr() *Collection

func (*Collection) UnmarshalJSON added in v0.4.0

func (it *Collection) UnmarshalJSON(
	rawJsonBytes []byte,
) error

type CollectionDataModel added in v0.4.0

type CollectionDataModel struct {
	Refs []ref.Value
}

func NewDataModel added in v0.4.0

func NewDataModel(collection *Collection) *CollectionDataModel

type QuickReference added in v0.8.3

type QuickReference struct {
	ErrorType              errtype.Variation
	ReferencesCompiledLine string
}

func NewQuickReference added in v0.8.3

func NewQuickReference(
	errorType errtype.Variation,
	referenceItems ...interface{},
) QuickReference

func NewQuickReferenceStrings added in v0.8.3

func NewQuickReferenceStrings(
	errorType errtype.Variation,
	referenceItems ...string,
) QuickReference

func (QuickReference) CompileLine added in v0.8.3

func (it QuickReference) CompileLine() string

Jump to

Keyboard shortcuts

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