opt

package
v2.12.15 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package opt contains go basic types wrappers to be used when dealing with optional types. The main intention of this package is to provide support for code generation with optional types.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bool

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

func OBool

func OBool(v bool) (r Bool)

func (Bool) Get

func (b Bool) Get() (v bool, ok bool)

func (*Bool) Set

func (b *Bool) Set(v bool)

type Float32

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

func OFloat32

func OFloat32(v float32) (r Float32)

func (Float32) Get

func (f Float32) Get() (v float32, ok bool)

func (*Float32) Set

func (f *Float32) Set(v float32)

type Float64

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

func OFloat64

func OFloat64(v float64) (r Float64)

func (Float64) Get

func (f Float64) Get() (v float64, ok bool)

func (*Float64) Set

func (f *Float64) Set(v float64)

type Int

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

func OInt

func OInt(v int) (r Int)

func (Int) Get

func (i Int) Get() (v int, ok bool)

func (*Int) Set

func (i *Int) Set(v int)

type Int16

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

func OInt16

func OInt16(v int16) (r Int16)

func (Int16) Get

func (i Int16) Get() (v int16, ok bool)

func (*Int16) Set

func (i *Int16) Set(v int16)

type Int32

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

func OInt32

func OInt32(v int32) (r Int32)

func (Int32) Get

func (i Int32) Get() (v int32, ok bool)

func (*Int32) Set

func (i *Int32) Set(v int32)

type Int64

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

func OInt64

func OInt64(v int64) (r Int64)

func (Int64) Get

func (i Int64) Get() (v int64, ok bool)

func (*Int64) Set

func (i *Int64) Set(v int64)

type Int8

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

func OInt8

func OInt8(v int8) (r Int8)

func (Int8) Get

func (i Int8) Get() (v int8, ok bool)

func (*Int8) Set

func (i *Int8) Set(v int8)

type String

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

func OString

func OString(v string) (r String)

func (String) Get

func (s String) Get() (v string, ok bool)

func (*String) Set

func (s *String) Set(v string)

type Uint

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

func OUint

func OUint(v uint) (r Uint)

func (Uint) Get

func (u Uint) Get() (v uint, ok bool)

func (*Uint) Set

func (u *Uint) Set(v uint)

type Uint16

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

func OUint16

func OUint16(v uint16) (r Uint16)

func (Uint16) Get

func (u Uint16) Get() (v uint16, ok bool)

func (*Uint16) Set

func (u *Uint16) Set(v uint16)

type Uint32

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

func OUint32

func OUint32(v uint32) (r Uint32)

func (Uint32) Get

func (u Uint32) Get() (v uint32, ok bool)

func (*Uint32) Set

func (u *Uint32) Set(v uint32)

type Uint64

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

func OUint64

func OUint64(v uint64) (r Uint64)

func (Uint64) Get

func (u Uint64) Get() (v uint64, ok bool)

func (*Uint64) Set

func (u *Uint64) Set(v uint64)

type Uint8

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

func OUint8

func OUint8(v uint8) (r Uint8)

func (Uint8) Get

func (u Uint8) Get() (v uint8, ok bool)

func (*Uint8) Set

func (u *Uint8) Set(v uint8)

Jump to

Keyboard shortcuts

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