Documentation
¶
Index ¶
- func AllIndividualItemsCount(first *Collection, collections ...*Collection) int
- func CompileAnyItemsToCsvStringDefault(references ...interface{}) string
- func LengthOfEachItems(manyCollections [][]ref.Value) int
- func LengthOfEachItemsPtr(manyCollections *[]*[]*ref.Value) int
- func MergeReferences(existingReferences []ref.Value, newReferences ...ref.Value) []ref.Value
- func PrependReferences(isClone bool, appendingItems []ref.Value, prependingItems ...ref.Value) []ref.Value
- func QuickCompileString(joiner string, quickReferences ...QuickReference) (line string)
- func QuickCompileStringDefaultEachLine(quickReferences ...QuickReference) (line string)
- func QuickCompileStringDefaultInLine(quickReferences ...QuickReference) (line string)
- func QuickCompileStrings(quickReferences ...QuickReference) (lines []string)
- type Collection
- func Empty() Collection
- func EmptyPtr() *Collection
- func New(capacity int) *Collection
- func New2() *Collection
- func New4() *Collection
- func NewClone(items ...ref.Value) *Collection
- func NewDirectItem(varName string, val interface{}) *Collection
- func NewExistingCollectionPlusAddition(existingReferences *Collection, newReferences ...ref.Value) *Collection
- func NewExistingPlusAddition(existingReferences []ref.Value, newReferences ...ref.Value) *Collection
- func NewFromDataModelPtr(model *CollectionDataModel) *Collection
- func NewUsingCollection(isCloneSingleItems bool, first *Collection, items ...*Collection) *Collection
- func NewUsingMany(manyCollections ...[]ref.Value) *Collection
- func NewUsingRefs(isClone bool, items ...ref.Value) *Collection
- func NewUsingRefsOrNil(items ...ref.Value) *Collection
- func NewUsingValues(items ...ref.Value) *Collection
- func NewWithItem(capacity int, varName string, val interface{}) *Collection
- func (it *Collection) Add(name string, val interface{}) *Collection
- func (it *Collection) AddCollection(collection *Collection) *Collection
- func (it *Collection) AddCollectionCloned(collections ...*Collection) *Collection
- func (it *Collection) AddCollections(collections ...*Collection) *Collection
- func (it *Collection) AddMap(collectionMap map[string]interface{}) *Collection
- func (it *Collection) Adds(refs ...ref.Value) *Collection
- func (it *Collection) AddsByCloningItems(refs ...ref.Value) *Collection
- func (it *Collection) AddsIf(isAdd bool, refs ...ref.Value) *Collection
- func (it *Collection) AddsPtr(refs ...*ref.Value) *Collection
- func (it *Collection) AddsPtrByCloningItems(refs ...*ref.Value) *Collection
- func (it *Collection) AsJsonContractsBinder() corejson.JsonContractsBinder
- func (it *Collection) AsJsonMarshaller() corejson.JsonMarshaller
- func (it *Collection) AsJsonParseSelfInjector() corejson.JsonParseSelfInjector
- func (it *Collection) AsJsoner() corejson.Jsoner
- func (it Collection) Clone() Collection
- func (it *Collection) ClonePtr() *Collection
- func (it *Collection) Collection() []ref.Value
- func (it *Collection) ConcatNew(isSingleItemsClone bool, collections ...*Collection) *Collection
- func (it *Collection) Dispose()
- func (it *Collection) IsEmpty() bool
- func (it *Collection) IsEqual(another *Collection) bool
- func (it *Collection) IsNull() bool
- func (it *Collection) Items() []ref.Value
- func (it Collection) Json() corejson.Result
- func (it *Collection) JsonModel() *CollectionDataModel
- func (it *Collection) JsonModelAny() interface{}
- func (it *Collection) JsonParseSelfInject(jsonResult *corejson.Result) error
- func (it Collection) JsonPtr() *corejson.Result
- func (it *Collection) Length() int
- func (it *Collection) List() []ref.Value
- func (it *Collection) MarshalJSON() ([]byte, error)
- func (it *Collection) ParseInjectUsingJson(jsonResult *corejson.Result) (*Collection, error)
- func (it *Collection) ParseInjectUsingJsonMust(jsonResult *corejson.Result) *Collection
- func (it Collection) String() string
- func (it *Collection) Strings() []string
- func (it *Collection) UnmarshalJSON(data []byte) error
- type CollectionDataModel
- type QuickReference
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 LengthOfEachItemsPtr ¶ added in v0.5.4
func MergeReferences ¶ added in v0.8.3
func PrependReferences ¶ added in v0.8.3
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 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 NewUsingCollection ¶ added in v0.6.8
func NewUsingCollection( isCloneSingleItems bool, first *Collection, items ...*Collection, ) *Collection
func NewUsingMany ¶ added in v0.5.4
func NewUsingMany( manyCollections ...[]ref.Value, ) *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) 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) AddCollections ¶ added in v0.9.2
func (it *Collection) AddCollections( collections ...*Collection, ) *Collection
func (*Collection) AddMap ¶
func (it *Collection) AddMap( collectionMap map[string]interface{}, ) *Collection
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) 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) ConcatNew ¶ added in v0.6.8
func (it *Collection) ConcatNew( isSingleItemsClone bool, collections ...*Collection, ) *Collection
func (*Collection) Dispose ¶ added in v0.7.9
func (it *Collection) Dispose()
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() *CollectionDataModel
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) 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) String ¶
func (it Collection) String() string
func (*Collection) Strings ¶
func (it *Collection) Strings() []string
func (*Collection) UnmarshalJSON ¶ added in v0.4.0
func (it *Collection) UnmarshalJSON(data []byte) error
type CollectionDataModel ¶ added in v0.4.0
func NewDataModel ¶ added in v0.4.0
func NewDataModel(collection *Collection) *CollectionDataModel
type QuickReference ¶ added in v0.8.3
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
Source Files
¶
Click to show internal directories.
Click to hide internal directories.