errcasted

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Result

type Result struct {
	Wrapper          *errorwrapper.Wrapper
	IsCastedProperly bool
}

func Empty

func Empty() Result

func FailedTypeCast added in v0.1.9

func FailedTypeCast(any interface{}, toType interface{}, msg string) Result

func New

func New(wrapper *errorwrapper.Wrapper) Result

func (Result) ToResultPtr added in v0.1.9

func (it Result) ToResultPtr() *ResultPtr

type ResultPtr

type ResultPtr struct {
	Wrapper          *errorwrapper.Wrapper
	IsCastedProperly bool
}

func EmptyPtr

func EmptyPtr() *ResultPtr

func FailedTypeCastPtr added in v0.1.9

func FailedTypeCastPtr(any interface{}, toType interface{}, msg string) *ResultPtr

func NewPtr

func NewPtr(wrapper *errorwrapper.Wrapper) *ResultPtr

func (*ResultPtr) ToResult

func (resultPtr *ResultPtr) ToResult() Result

Jump to

Keyboard shortcuts

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