Documentation ¶
Index ¶
- type Result
- func EmptyErrorResult(result float32) Result
- func EmptyErrorResultPtr(result float32) *Result
- func Error(err error) Result
- func ErrorPtr(err error) *Result
- func ErrorWrapper(errW *errorwrapper.Wrapper) Result
- func ErrorWrapperPtr(errW *errorwrapper.Wrapper) *Result
- func New(result float32, variation errtype.Variation, errMsg string) Result
- func NewError(result float32, err error) Result
- func NewErrorWithType(result float32, variation errtype.Variation, err error) Result
- func NewPtr(result float32, variation errtype.Variation, errMsg string) *Result
- func NewSimple(result float32, variation errtype.Variation) Result
- func NewUsingWrapper(result float32, errW *errorwrapper.Wrapper) Result
- func NewUsingWrapperPtr(result float32, errW *errorwrapper.Wrapper) *Result
- type Result2
- type Result3
- type ResultWithApplicable
- func EmptyErrorApplicableResult(result float32, isApplicable bool) ResultWithApplicable
- func EmptyErrorApplicableResultPtr(result float32, isApplicable bool) *ResultWithApplicable
- func NewApplicable(result float32, isApplicable bool, variation errtype.Variation, errMsg string) ResultWithApplicable
- func NewApplicablePtr(result float32, isApplicable bool, variation errtype.Variation, errMsg string) *ResultWithApplicable
- type ResultWithApplicable2
- func EmptyErrorApplicableResult2(result, result2 float32, isApplicable bool) ResultWithApplicable2
- func EmptyErrorApplicableResult2Ptr(result, result2 float32, isApplicable bool) *ResultWithApplicable2
- func NewApplicable2(result, result2 float32, isApplicable bool, variation errtype.Variation, ...) ResultWithApplicable2
- func NewApplicable2Ptr(result, result2 float32, isApplicable bool, variation errtype.Variation, ...) *ResultWithApplicable2
- type Results
- func EmptyErrorResults(values ...float32) Results
- func EmptyErrorResultsPtr(values *[]float32) *Results
- func NewResults(variation errtype.Variation, errMsg string, values ...float32) Results
- func NewResultsPtr(values *[]float32, err error) *Results
- func NewResultsUsingWrapperPtr(values *[]float32, errW *errorwrapper.Wrapper) *Results
- func ResultsError(variation errtype.Variation, err error) *Results
- func (receiver *Results) HasError() bool
- func (receiver *Results) HasIssuesOrEmpty() bool
- func (receiver *Results) HasItems() bool
- func (receiver *Results) HasSafeItems() bool
- func (receiver *Results) IsEmptyError() bool
- func (receiver *Results) IsEmptyItems() bool
- func (receiver *Results) IsNull() bool
- func (receiver *Results) ValueMust() *[]float32
- type ResultsWithErrorCollection
- func EmptyResultsWithErrorCollection() ResultsWithErrorCollection
- func EmptyResultsWithErrorCollectionPtr() *ResultsWithErrorCollection
- func NewResultsWithErrorCollection(values *[]float32, errCollection *errwrappers.Collection) ResultsWithErrorCollection
- func NewResultsWithErrorCollectionPtr(values *[]float32, errCollection *errwrappers.Collection) *ResultsWithErrorCollection
- func NewResultsWithErrorCollectionUsingErrorCollection(errCollection *errwrappers.Collection) ResultsWithErrorCollection
- func NewResultsWithErrorCollectionUsingErrorCollectionPtr(errCollection *errwrappers.Collection) *ResultsWithErrorCollection
- func NewResultsWithErrorCollectionUsingTypeErrorPtr(errType errtype.Variation, err error) *ResultsWithErrorCollection
- func NewResultsWithErrorCollectionUsingTypeMessagePtr(errType errtype.Variation, msg string) *ResultsWithErrorCollection
- func NewResultsWithErrorCollectionUsingTypePtr(errType errtype.Variation) *ResultsWithErrorCollection
- func (receiver *ResultsWithErrorCollection) HasError() bool
- func (receiver *ResultsWithErrorCollection) HasIssuesOrEmpty() bool
- func (receiver *ResultsWithErrorCollection) HasItems() bool
- func (receiver *ResultsWithErrorCollection) HasSafeItems() bool
- func (receiver *ResultsWithErrorCollection) IsEmptyError() bool
- func (receiver *ResultsWithErrorCollection) IsEmptyItems() bool
- func (receiver *ResultsWithErrorCollection) ValueMust() *[]float32
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Result ¶
type Result struct { Value float32 ErrorWrapper *errorwrapper.Wrapper }
func EmptyErrorResult ¶
func EmptyErrorResultPtr ¶
func ErrorWrapper ¶ added in v0.1.9
func ErrorWrapper( errW *errorwrapper.Wrapper, ) Result
func ErrorWrapperPtr ¶ added in v0.2.0
func ErrorWrapperPtr( errW *errorwrapper.Wrapper, ) *Result
func NewErrorWithType ¶
func NewUsingWrapper ¶ added in v0.1.9
func NewUsingWrapper( result float32, errW *errorwrapper.Wrapper, ) Result
func NewUsingWrapperPtr ¶ added in v0.2.0
func NewUsingWrapperPtr( result float32, errW *errorwrapper.Wrapper, ) *Result
func (*Result) IsEmptyError ¶ added in v0.4.9
func (*Result) IsEmptyOrError ¶ added in v0.4.9
func (*Result) IsValidRange ¶ added in v0.4.9
type Result2 ¶
type Result2 struct { Value float32 Value2 float32 ErrorWrapper *errorwrapper.Wrapper }
type Result3 ¶
type Result3 struct { Value float32 Value2 float32 Value3 float32 ErrorWrapper *errorwrapper.Wrapper }
type ResultWithApplicable ¶
type ResultWithApplicable struct { Value float32 IsApplicable bool ErrorWrapper *errorwrapper.Wrapper }
func EmptyErrorApplicableResult ¶
func EmptyErrorApplicableResult( result float32, isApplicable bool, ) ResultWithApplicable
func EmptyErrorApplicableResultPtr ¶
func EmptyErrorApplicableResultPtr( result float32, isApplicable bool, ) *ResultWithApplicable
func NewApplicable ¶
func NewApplicablePtr ¶
type ResultWithApplicable2 ¶
type ResultWithApplicable2 struct { Value float32 Value2 float32 IsApplicable bool ErrorWrapper *errorwrapper.Wrapper }
func EmptyErrorApplicableResult2 ¶
func EmptyErrorApplicableResult2( result, result2 float32, isApplicable bool, ) ResultWithApplicable2
func EmptyErrorApplicableResult2Ptr ¶
func EmptyErrorApplicableResult2Ptr( result, result2 float32, isApplicable bool, ) *ResultWithApplicable2
func NewApplicable2 ¶
func NewApplicable2Ptr ¶
type Results ¶
type Results struct { Values *[]float32 ErrorWrapper *errorwrapper.Wrapper }
func EmptyErrorResults ¶
func EmptyErrorResultsPtr ¶
func NewResults ¶
func NewResultsPtr ¶
func NewResultsUsingWrapperPtr ¶ added in v0.2.1
func NewResultsUsingWrapperPtr( values *[]float32, errW *errorwrapper.Wrapper, ) *Results
func ResultsError ¶ added in v0.0.5
func (*Results) HasIssuesOrEmpty ¶ added in v0.3.8
func (*Results) HasSafeItems ¶ added in v0.3.8
HasSafeItems No errors and has items
func (*Results) IsEmptyError ¶ added in v0.3.8
func (*Results) IsEmptyItems ¶ added in v0.3.8
type ResultsWithErrorCollection ¶ added in v0.3.8
type ResultsWithErrorCollection struct { Values *[]float32 ErrorWrappers *errwrappers.Collection }
func EmptyResultsWithErrorCollection ¶ added in v0.3.8
func EmptyResultsWithErrorCollection() ResultsWithErrorCollection
func EmptyResultsWithErrorCollectionPtr ¶ added in v0.3.8
func EmptyResultsWithErrorCollectionPtr() *ResultsWithErrorCollection
func NewResultsWithErrorCollection ¶ added in v0.3.8
func NewResultsWithErrorCollection( values *[]float32, errCollection *errwrappers.Collection, ) ResultsWithErrorCollection
func NewResultsWithErrorCollectionPtr ¶ added in v0.3.8
func NewResultsWithErrorCollectionPtr( values *[]float32, errCollection *errwrappers.Collection, ) *ResultsWithErrorCollection
func NewResultsWithErrorCollectionUsingErrorCollection ¶ added in v0.3.8
func NewResultsWithErrorCollectionUsingErrorCollection( errCollection *errwrappers.Collection, ) ResultsWithErrorCollection
func NewResultsWithErrorCollectionUsingErrorCollectionPtr ¶ added in v0.3.8
func NewResultsWithErrorCollectionUsingErrorCollectionPtr( errCollection *errwrappers.Collection, ) *ResultsWithErrorCollection
func NewResultsWithErrorCollectionUsingTypeErrorPtr ¶ added in v0.3.8
func NewResultsWithErrorCollectionUsingTypeErrorPtr( errType errtype.Variation, err error, ) *ResultsWithErrorCollection
func NewResultsWithErrorCollectionUsingTypeMessagePtr ¶ added in v0.3.8
func NewResultsWithErrorCollectionUsingTypeMessagePtr( errType errtype.Variation, msg string, ) *ResultsWithErrorCollection
func NewResultsWithErrorCollectionUsingTypePtr ¶ added in v0.3.8
func NewResultsWithErrorCollectionUsingTypePtr( errType errtype.Variation, ) *ResultsWithErrorCollection
func (*ResultsWithErrorCollection) HasError ¶ added in v0.3.8
func (receiver *ResultsWithErrorCollection) HasError() bool
func (*ResultsWithErrorCollection) HasIssuesOrEmpty ¶ added in v0.3.8
func (receiver *ResultsWithErrorCollection) HasIssuesOrEmpty() bool
func (*ResultsWithErrorCollection) HasItems ¶ added in v0.3.8
func (receiver *ResultsWithErrorCollection) HasItems() bool
func (*ResultsWithErrorCollection) HasSafeItems ¶ added in v0.3.8
func (receiver *ResultsWithErrorCollection) HasSafeItems() bool
No errors and has items
func (*ResultsWithErrorCollection) IsEmptyError ¶ added in v0.3.8
func (receiver *ResultsWithErrorCollection) IsEmptyError() bool
func (*ResultsWithErrorCollection) IsEmptyItems ¶ added in v0.3.8
func (receiver *ResultsWithErrorCollection) IsEmptyItems() bool
func (*ResultsWithErrorCollection) ValueMust ¶ added in v0.3.8
func (receiver *ResultsWithErrorCollection) ValueMust() *[]float32
Click to show internal directories.
Click to hide internal directories.