Documentation ¶
Index ¶
- type MySlice
- func (m *MySlice) Append(v ...string) *MySlice
- func (m *MySlice) AsImmutable(v *MySlice) *MySlice
- func (m *MySlice) AsMutable() *MySlice
- func (m *MySlice) Get(i int) string
- func (s *MySlice) IsDeeplyNonMutable(seen map[interface{}]bool) bool
- func (m *MySlice) Len() int
- func (m *MySlice) Mutable() bool
- func (m *MySlice) Range() []string
- func (m *MySlice) Set(i int, v string) *MySlice
- func (m *MySlice) WithImmutable(f func(mi *MySlice)) *MySlice
- func (m *MySlice) WithMutable(f func(mi *MySlice)) *MySlice
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MySlice ¶
type MySlice struct {
// contains filtered or unexported fields
}
MySlice is an immutable type and has the following template:
[]string
func NewMySlice ¶
func NewMySliceLen ¶
func (*MySlice) AsImmutable ¶
func (*MySlice) IsDeeplyNonMutable ¶
func (*MySlice) WithImmutable ¶
func (*MySlice) WithMutable ¶
Click to show internal directories.
Click to hide internal directories.