_testFiles

package
v0.0.0-...-5fef39c Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Blah

type Blah = Dummy // ok; use of alias

type Dummy

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

Dummy is an immutable type and has the following template:

struct {
	Name string
}

func Eg

func Eg(d Dummy) Dummy

func (*Dummy) AsImmutable

func (s *Dummy) AsImmutable(v *Dummy) *Dummy

func (*Dummy) AsMutable

func (s *Dummy) AsMutable() *Dummy

func (*Dummy) IsDeeplyNonMutable

func (s *Dummy) IsDeeplyNonMutable(seen map[interface{}]bool) bool

func (*Dummy) Mutable

func (s *Dummy) Mutable() bool

func (*Dummy) Name

func (s *Dummy) Name() string

func (*Dummy) SetName

func (s *Dummy) SetName(n string) *Dummy

SetName is the setter for Name()

func (*Dummy) WithImmutable

func (s *Dummy) WithImmutable(f func(si *Dummy)) *Dummy

func (*Dummy) WithMutable

func (s *Dummy) WithMutable(f func(si *Dummy)) *Dummy

type Dummy2

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

Dummy2 is an immutable type and has the following template:

struct {
	name	[]byte
	other	*Dummy3
	mine	MyIntf
	another	MyType
}

func (*Dummy2) AsImmutable

func (s *Dummy2) AsImmutable(v *Dummy2) *Dummy2

func (*Dummy2) AsMutable

func (s *Dummy2) AsMutable() *Dummy2

func (*Dummy2) IsDeeplyNonMutable

func (s *Dummy2) IsDeeplyNonMutable(seen map[interface{}]bool) bool

func (*Dummy2) Mutable

func (s *Dummy2) Mutable() bool

func (*Dummy2) WithImmutable

func (s *Dummy2) WithImmutable(f func(si *Dummy2)) *Dummy2

func (*Dummy2) WithMutable

func (s *Dummy2) WithMutable(f func(si *Dummy2)) *Dummy2

type Dummy3

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

Dummy3 is an immutable type and has the following template:

struct {
	other *Dummy2
}

func (*Dummy3) AsImmutable

func (s *Dummy3) AsImmutable(v *Dummy3) *Dummy3

func (*Dummy3) AsMutable

func (s *Dummy3) AsMutable() *Dummy3

func (*Dummy3) IsDeeplyNonMutable

func (s *Dummy3) IsDeeplyNonMutable(seen map[interface{}]bool) bool

func (*Dummy3) Mutable

func (s *Dummy3) Mutable() bool

func (*Dummy3) WithImmutable

func (s *Dummy3) WithImmutable(f func(si *Dummy3)) *Dummy3

func (*Dummy3) WithMutable

func (s *Dummy3) WithMutable(f func(si *Dummy3)) *Dummy3

type MyIntf

type MyIntf interface {
	IsMyIntf()
}

type MyType

type MyType []string

func (MyType) IsMyIntf

func (m MyType) IsMyIntf()

Jump to

Keyboard shortcuts

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