obj

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Object

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

func NewObject

func NewObject(v any) *Object

func NewObjectWithMaxLen

func NewObjectWithMaxLen(v any, len int) *Object

func (*Object) AsDumpString

func (o *Object) AsDumpString() string

Return dump string even if the value would be any value

func (*Object) AsFmtString

func (o *Object) AsFmtString() string

func (*Object) AsRawValue

func (o *Object) AsRawValue() any

Return raw value as any type that should be same as original value

func (*Object) AsString

func (o *Object) AsString() string

Return the value as string that was converted by fmt.Sprintf for each type

func (*Object) AsType

func (o *Object) AsType() string

func (*Object) Format

func (o *Object) Format(s fmt.State, verb rune)

format and truncate. For `fmt/print.go` Formatter interface

func (*Object) IsDumpableRawType

func (o *Object) IsDumpableRawType() bool

Return boolean whether the value is dumpable

func (*Object) IsPointerType added in v0.0.10

func (o *Object) IsPointerType() bool

Return boolean whether the value is a pointer

func (*Object) IsStringType

func (o *Object) IsStringType() bool

Return boolean whether the value is string type

func (*Object) IsStructType added in v0.0.10

func (o *Object) IsStructType() bool

Return boolean whether the value is a struct

func (*Object) Touch

func (o *Object) Touch() bool

Jump to

Keyboard shortcuts

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