myitcv.io: myitcv.io/react/examples/sites/globalstate/model Index | Files

package model

import "myitcv.io/react/examples/sites/globalstate/model"

Index

Package Files

gen_person_immutableGen.go person.go

type People Uses

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

People is an immutable type and has the following template:

[]*Person

func NewPeople Uses

func NewPeople(s ...*Person) *People

func NewPeopleLen Uses

func NewPeopleLen(l int) *People

func (*People) Append Uses

func (m *People) Append(v ...*Person) *People

func (*People) AsImmutable Uses

func (m *People) AsImmutable(v *People) *People

func (*People) AsMutable Uses

func (m *People) AsMutable() *People

func (*People) Get Uses

func (m *People) Get(i int) *Person

func (*People) IsDeeplyNonMutable Uses

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

func (*People) Len Uses

func (m *People) Len() int

func (*People) Mutable Uses

func (m *People) Mutable() bool

func (*People) Range Uses

func (m *People) Range() []*Person

func (*People) Set Uses

func (m *People) Set(i int, v *Person) *People

func (*People) WithImmutable Uses

func (m *People) WithImmutable(f func(mi *People)) *People

func (*People) WithMutable Uses

func (m *People) WithMutable(f func(mi *People)) *People

type Person Uses

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

Person is an immutable type and has the following template:

struct {
	Name	string
	Age	int
}

func NewPerson Uses

func NewPerson(name string, age int) *Person

func (*Person) Age Uses

func (s *Person) Age() int

func (*Person) AsImmutable Uses

func (s *Person) AsImmutable(v *Person) *Person

func (*Person) AsMutable Uses

func (s *Person) AsMutable() *Person

func (*Person) IsDeeplyNonMutable Uses

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

func (*Person) Mutable Uses

func (s *Person) Mutable() bool

func (*Person) Name Uses

func (s *Person) Name() string

func (*Person) SetAge Uses

func (s *Person) SetAge(n int) *Person

SetAge is the setter for Age()

func (*Person) SetName Uses

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

SetName is the setter for Name()

func (*Person) WithImmutable Uses

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

func (*Person) WithMutable Uses

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

Package model imports 1 packages (graph) and is imported by 2 packages. Updated 2018-09-13. Refresh now. Tools for package owners.