Documentation ¶
Index ¶
- type Blah
- type Dummy
- func (s *Dummy) AsImmutable(v *Dummy) *Dummy
- func (s *Dummy) AsMutable() *Dummy
- func (s *Dummy) IsDeeplyNonMutable(seen map[interface{}]bool) bool
- func (s *Dummy) Mutable() bool
- func (s *Dummy) Name() string
- func (s *Dummy) SetName(n string) *Dummy
- func (s *Dummy) WithImmutable(f func(si *Dummy)) *Dummy
- func (s *Dummy) WithMutable(f func(si *Dummy)) *Dummy
- type Dummy2
- func (s *Dummy2) AsImmutable(v *Dummy2) *Dummy2
- func (s *Dummy2) AsMutable() *Dummy2
- func (s *Dummy2) IsDeeplyNonMutable(seen map[interface{}]bool) bool
- func (s *Dummy2) Mutable() bool
- func (s *Dummy2) WithImmutable(f func(si *Dummy2)) *Dummy2
- func (s *Dummy2) WithMutable(f func(si *Dummy2)) *Dummy2
- type Dummy3
- func (s *Dummy3) AsImmutable(v *Dummy3) *Dummy3
- func (s *Dummy3) AsMutable() *Dummy3
- func (s *Dummy3) IsDeeplyNonMutable(seen map[interface{}]bool) bool
- func (s *Dummy3) Mutable() bool
- func (s *Dummy3) WithImmutable(f func(si *Dummy3)) *Dummy3
- func (s *Dummy3) WithMutable(f func(si *Dummy3)) *Dummy3
- type MyIntf
- type MyType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dummy ¶
type Dummy struct {
// contains filtered or unexported fields
}
Dummy is an immutable type and has the following template:
struct { Name string }
func (*Dummy) AsImmutable ¶
func (*Dummy) IsDeeplyNonMutable ¶
func (*Dummy) WithImmutable ¶
func (*Dummy) WithMutable ¶
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 (*Dummy2) IsDeeplyNonMutable ¶
func (*Dummy2) WithImmutable ¶
func (*Dummy2) WithMutable ¶
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 (*Dummy3) IsDeeplyNonMutable ¶
func (*Dummy3) WithImmutable ¶
func (*Dummy3) WithMutable ¶
Click to show internal directories.
Click to hide internal directories.