Versions in this module Expand all Collapse all v1 v1.5.11 Aug 6, 2026 v1.5.8 Jun 22, 2026 Changes in this version + type ByteBuilder struct + func (b *ByteBuilder) Buf() []byte + func (b *ByteBuilder) FinishSize(firstUsedByte int, lastUsedByte int, optimizeEmpty bool) + func (b *ByteBuilder) Len() int + func (b *ByteBuilder) Print() string + func (b *ByteBuilder) PrintLegend() string + func (b *ByteBuilder) ReserveSpaceForSize() int + func (b *ByteBuilder) SetCursorFinish() + func (b *ByteBuilder) SetCursorStart() + func (b *ByteBuilder) WriteElementCountTL1(v uint32) + func (b *ByteBuilder) WriteElementCountTL2(v int) + func (b *ByteBuilder) WriteFieldmask() + func (b *ByteBuilder) WriteStringTL1(v string) + func (b *ByteBuilder) WriteStringTL2(v string) + func (b *ByteBuilder) WriteTL1ObjectMagic(v uint32) + func (b *ByteBuilder) WriteTL2VariantIndex(v int) + type ByteColor byte + const ByteColorElementCount + const ByteColorNormal + const ByteColorObjectMagic + const ByteColorObjectSize + const ByteColorStringData + const ByteColorStringPadding + const ByteColorStringSize + const ByteColorTL2FieldMask + const ByteColorTL2VariantIndex + type KernelValue interface + Clone func() KernelValue + CompareForMapKey func(other KernelValue) int + Random func(rg *rand.Rand) + ReadTL1 func(r []byte, ctx *TLContext, bare bool, natArgs []uint32) ([]byte, []uint32, error) + ReadTL2 func(r []byte, ctx *TLContext) ([]byte, error) + Reset func() + UIFixPath func(side int, level int, model *UIModel) int + UIKey func(level int, model *UIModel, insert bool, delete bool, up bool, down bool) + UIStartEdit func(level int, model *UIModel, createMode int) + UIWrite func(sb *strings.Builder, onPath bool, level int, model *UIModel) + WriteJSON func(w []byte, ctx *TLContext) []byte + WriteTL1 func(w *ByteBuilder, bare bool, natArgs []uint32, onPath bool, level int, ...) []uint32 + WriteTL2 func(w *ByteBuilder, optimizeEmpty bool, onPath bool, level int, model *UIModel) + func CreateValue(instance pure.TypeInstance) KernelValue + type KernelValueArray struct + func (v *KernelValueArray) Clone() KernelValue + func (v *KernelValueArray) CompareForMapKey(other KernelValue) int + func (v *KernelValueArray) Random(rg *rand.Rand) + func (v *KernelValueArray) ReadTL1(r []byte, ctx *TLContext, bare bool, natArgs []uint32) ([]byte, []uint32, error) + func (v *KernelValueArray) ReadTL2(r []byte, ctx *TLContext) (_ []byte, err error) + func (v *KernelValueArray) Reset() + func (v *KernelValueArray) UIFixPath(side int, level int, model *UIModel) int + func (v *KernelValueArray) UIKey(level int, model *UIModel, insert bool, delete bool, up bool, down bool) + func (v *KernelValueArray) UIStartEdit(level int, model *UIModel, createMode int) + func (v *KernelValueArray) UIWrite(sb *strings.Builder, onPath bool, level int, model *UIModel) + func (v *KernelValueArray) WriteJSON(w []byte, ctx *TLContext) []byte + func (v *KernelValueArray) WriteTL1(w *ByteBuilder, bare bool, natArgs []uint32, onPath bool, level int, ...) []uint32 + func (v *KernelValueArray) WriteTL2(w *ByteBuilder, optimizeEmpty bool, onPath bool, level int, model *UIModel) + type KernelValueArrayBit struct + func (v *KernelValueArrayBit) Clone() KernelValue + func (v *KernelValueArrayBit) CompareForMapKey(other KernelValue) int + func (v *KernelValueArrayBit) Random(rg *rand.Rand) + func (v *KernelValueArrayBit) ReadTL1(r []byte, ctx *TLContext, bare bool, natArgs []uint32) ([]byte, []uint32, error) + func (v *KernelValueArrayBit) ReadTL2(r []byte, ctx *TLContext) (_ []byte, err error) + func (v *KernelValueArrayBit) Reset() + func (v *KernelValueArrayBit) UIFixPath(side int, level int, model *UIModel) int + func (v *KernelValueArrayBit) UIKey(level int, model *UIModel, insert bool, delete bool, up bool, down bool) + func (v *KernelValueArrayBit) UIStartEdit(level int, model *UIModel, createMode int) + func (v *KernelValueArrayBit) UIWrite(sb *strings.Builder, onPath bool, level int, model *UIModel) + func (v *KernelValueArrayBit) WriteJSON(w []byte, ctx *TLContext) []byte + func (v *KernelValueArrayBit) WriteTL1(w *ByteBuilder, bare bool, natArgs []uint32, onPath bool, level int, ...) []uint32 + func (v *KernelValueArrayBit) WriteTL2(w *ByteBuilder, optimizeEmpty bool, onPath bool, level int, model *UIModel) + type KernelValueBit struct + func (v *KernelValueBit) Clone() KernelValue + func (v *KernelValueBit) CompareForMapKey(other KernelValue) int + func (v *KernelValueBit) Random(rg *rand.Rand) + func (v *KernelValueBit) ReadTL1(r []byte, ctx *TLContext, bare bool, natArgs []uint32) ([]byte, []uint32, error) + func (v *KernelValueBit) ReadTL2(r []byte, ctx *TLContext) ([]byte, error) + func (v *KernelValueBit) Reset() + func (v *KernelValueBit) UIFixPath(side int, level int, model *UIModel) int + func (v *KernelValueBit) UIKey(level int, model *UIModel, insert bool, delete bool, up bool, down bool) + func (v *KernelValueBit) UIStartEdit(level int, model *UIModel, createMode int) + func (v *KernelValueBit) UIWrite(sb *strings.Builder, onPath bool, level int, model *UIModel) + func (v *KernelValueBit) WriteJSON(w []byte, ctx *TLContext) []byte + func (v *KernelValueBit) WriteTL1(w *ByteBuilder, bare bool, natArgs []uint32, onPath bool, level int, ...) []uint32 + func (v *KernelValueBit) WriteTL2(w *ByteBuilder, optimizeEmpty bool, onPath bool, level int, model *UIModel) + type KernelValueBool struct + func (v *KernelValueBool) Clone() KernelValue + func (v *KernelValueBool) CompareForMapKey(other KernelValue) int + func (v *KernelValueBool) Random(rg *rand.Rand) + func (v *KernelValueBool) ReadTL1(r []byte, ctx *TLContext, bare bool, natArgs []uint32) ([]byte, []uint32, error) + func (v *KernelValueBool) ReadTL2(r []byte, ctx *TLContext) ([]byte, error) + func (v *KernelValueBool) Reset() + func (v *KernelValueBool) UIFixPath(side int, level int, model *UIModel) int + func (v *KernelValueBool) UIKey(level int, model *UIModel, insert bool, delete bool, up bool, down bool) + func (v *KernelValueBool) UIStartEdit(level int, model *UIModel, createMode int) + func (v *KernelValueBool) UIWrite(sb *strings.Builder, onPath bool, level int, model *UIModel) + func (v *KernelValueBool) WriteJSON(w []byte, ctx *TLContext) []byte + func (v *KernelValueBool) WriteTL1(w *ByteBuilder, bare bool, natArgs []uint32, onPath bool, level int, ...) []uint32 + func (v *KernelValueBool) WriteTL2(w *ByteBuilder, optimizeEmpty bool, onPath bool, level int, model *UIModel) + type KernelValueByte struct + func (v *KernelValueByte) Clone() KernelValue + func (v *KernelValueByte) CompareForMapKey(other KernelValue) int + func (v *KernelValueByte) Random(rg *rand.Rand) + func (v *KernelValueByte) ReadTL1(r []byte, ctx *TLContext, bare bool, natArgs []uint32) ([]byte, []uint32, error) + func (v *KernelValueByte) ReadTL2(r []byte, ctx *TLContext) ([]byte, error) + func (v *KernelValueByte) Reset() + func (v *KernelValueByte) SetFromEditor(str string) error + func (v *KernelValueByte) UIFixPath(side int, level int, model *UIModel) int + func (v *KernelValueByte) UIKey(level int, model *UIModel, insert bool, delete bool, up bool, down bool) + func (v *KernelValueByte) UIStartEdit(level int, model *UIModel, createMode int) + func (v *KernelValueByte) UIWrite(sb *strings.Builder, onPath bool, level int, model *UIModel) + func (v *KernelValueByte) WriteJSON(w []byte, ctx *TLContext) []byte + func (v *KernelValueByte) WriteTL1(w *ByteBuilder, bare bool, natArgs []uint32, onPath bool, level int, ...) []uint32 + func (v *KernelValueByte) WriteTL2(w *ByteBuilder, optimizeEmpty bool, onPath bool, level int, model *UIModel) + type KernelValueDict struct + func (v *KernelValueDict) Clone() KernelValue + func (v *KernelValueDict) CompareForMapKey(other KernelValue) int + func (v *KernelValueDict) Random(rg *rand.Rand) + func (v *KernelValueDict) ReadTL1(r []byte, ctx *TLContext, bare bool, natArgs []uint32) ([]byte, []uint32, error) + func (v *KernelValueDict) ReadTL2(r []byte, ctx *TLContext) (_ []byte, err error) + func (v *KernelValueDict) Reset() + func (v *KernelValueDict) UIFixPath(side int, level int, model *UIModel) int + func (v *KernelValueDict) UIKey(level int, model *UIModel, insert bool, delete bool, up bool, down bool) + func (v *KernelValueDict) UIStartEdit(level int, model *UIModel, createMode int) + func (v *KernelValueDict) UIWrite(sb *strings.Builder, onPath bool, level int, model *UIModel) + func (v *KernelValueDict) WriteJSON(w []byte, ctx *TLContext) []byte + func (v *KernelValueDict) WriteTL1(w *ByteBuilder, bare bool, natArgs []uint32, onPath bool, level int, ...) []uint32 + func (v *KernelValueDict) WriteTL2(w *ByteBuilder, optimizeEmpty bool, onPath bool, level int, model *UIModel) + type KernelValueInt32 struct + func (v *KernelValueInt32) Clone() KernelValue + func (v *KernelValueInt32) CompareForMapKey(other KernelValue) int + func (v *KernelValueInt32) Random(rg *rand.Rand) + func (v *KernelValueInt32) ReadTL1(r []byte, ctx *TLContext, bare bool, natArgs []uint32) ([]byte, []uint32, error) + func (v *KernelValueInt32) ReadTL2(r []byte, ctx *TLContext) ([]byte, error) + func (v *KernelValueInt32) Reset() + func (v *KernelValueInt32) SetFromEditor(str string) error + func (v *KernelValueInt32) UIFixPath(side int, level int, model *UIModel) int + func (v *KernelValueInt32) UIKey(level int, model *UIModel, insert bool, delete bool, up bool, down bool) + func (v *KernelValueInt32) UIStartEdit(level int, model *UIModel, createMode int) + func (v *KernelValueInt32) UIWrite(sb *strings.Builder, onPath bool, level int, model *UIModel) + func (v *KernelValueInt32) WriteJSON(w []byte, ctx *TLContext) []byte + func (v *KernelValueInt32) WriteTL1(w *ByteBuilder, bare bool, natArgs []uint32, onPath bool, level int, ...) []uint32 + func (v *KernelValueInt32) WriteTL2(w *ByteBuilder, optimizeEmpty bool, onPath bool, level int, model *UIModel) + type KernelValueInt64 struct + func (v *KernelValueInt64) Clone() KernelValue + func (v *KernelValueInt64) CompareForMapKey(other KernelValue) int + func (v *KernelValueInt64) Random(rg *rand.Rand) + func (v *KernelValueInt64) ReadTL1(r []byte, ctx *TLContext, bare bool, natArgs []uint32) ([]byte, []uint32, error) + func (v *KernelValueInt64) ReadTL2(r []byte, ctx *TLContext) ([]byte, error) + func (v *KernelValueInt64) Reset() + func (v *KernelValueInt64) SetFromEditor(str string) error + func (v *KernelValueInt64) UIFixPath(side int, level int, model *UIModel) int + func (v *KernelValueInt64) UIKey(level int, model *UIModel, insert bool, delete bool, up bool, down bool) + func (v *KernelValueInt64) UIStartEdit(level int, model *UIModel, createMode int) + func (v *KernelValueInt64) UIWrite(sb *strings.Builder, onPath bool, level int, model *UIModel) + func (v *KernelValueInt64) WriteJSON(w []byte, ctx *TLContext) []byte + func (v *KernelValueInt64) WriteTL1(w *ByteBuilder, bare bool, natArgs []uint32, onPath bool, level int, ...) []uint32 + func (v *KernelValueInt64) WriteTL2(w *ByteBuilder, optimizeEmpty bool, onPath bool, level int, model *UIModel) + type KernelValuePrimitive interface + SetFromEditor func(str string) error + type KernelValueString struct + func (v *KernelValueString) Clone() KernelValue + func (v *KernelValueString) CompareForMapKey(other KernelValue) int + func (v *KernelValueString) Random(rg *rand.Rand) + func (v *KernelValueString) ReadTL1(r []byte, ctx *TLContext, bare bool, natArgs []uint32) ([]byte, []uint32, error) + func (v *KernelValueString) ReadTL2(r []byte, ctx *TLContext) ([]byte, error) + func (v *KernelValueString) Reset() + func (v *KernelValueString) UIFixPath(side int, level int, model *UIModel) int + func (v *KernelValueString) UIKey(level int, model *UIModel, insert bool, delete bool, up bool, down bool) + func (v *KernelValueString) UIStartEdit(level int, model *UIModel, createMode int) + func (v *KernelValueString) UIWrite(sb *strings.Builder, onPath bool, level int, model *UIModel) + func (v *KernelValueString) WriteJSON(w []byte, ctx *TLContext) []byte + func (v *KernelValueString) WriteTL1(w *ByteBuilder, bare bool, natArgs []uint32, onPath bool, level int, ...) []uint32 + func (v *KernelValueString) WriteTL2(w *ByteBuilder, optimizeEmpty bool, onPath bool, level int, model *UIModel) + type KernelValueStruct struct + func CreateValueStruct(ins *pure.TypeInstanceStruct) KernelValueStruct + func (v *KernelValueStruct) Clone() KernelValue + func (v *KernelValueStruct) CloneObject() KernelValueStruct + func (v *KernelValueStruct) CompareForMapKey(other KernelValue) int + func (v *KernelValueStruct) Random(rg *rand.Rand) + func (v *KernelValueStruct) ReadFieldsTL2(block byte, currentR []byte, ctx *TLContext) (err error) + func (v *KernelValueStruct) ReadTL1(r []byte, ctx *TLContext, bare bool, natArgs []uint32) ([]byte, []uint32, error) + func (v *KernelValueStruct) ReadTL2(r []byte, ctx *TLContext) (_ []byte, err error) + func (v *KernelValueStruct) Reset() + func (v *KernelValueStruct) UIFixPath(side int, level int, model *UIModel) int + func (v *KernelValueStruct) UIKey(level int, model *UIModel, insert bool, delete bool, up bool, down bool) + func (v *KernelValueStruct) UIStartEdit(level int, model *UIModel, createMode int) + func (v *KernelValueStruct) UIWrite(sb *strings.Builder, onPath bool, level int, model *UIModel) + func (v *KernelValueStruct) WriteJSON(w []byte, ctx *TLContext) []byte + func (v *KernelValueStruct) WriteTL1(w *ByteBuilder, bare bool, natArgs []uint32, onPath bool, level int, ...) []uint32 + func (v *KernelValueStruct) WriteTL2(w *ByteBuilder, optimizeEmpty bool, onPath bool, level int, model *UIModel) + type KernelValueUint32 struct + func (v *KernelValueUint32) Clone() KernelValue + func (v *KernelValueUint32) CompareForMapKey(other KernelValue) int + func (v *KernelValueUint32) Random(rg *rand.Rand) + func (v *KernelValueUint32) ReadTL1(r []byte, ctx *TLContext, bare bool, natArgs []uint32) ([]byte, []uint32, error) + func (v *KernelValueUint32) ReadTL2(r []byte, ctx *TLContext) ([]byte, error) + func (v *KernelValueUint32) Reset() + func (v *KernelValueUint32) SetFromEditor(str string) error + func (v *KernelValueUint32) UIFixPath(side int, level int, model *UIModel) int + func (v *KernelValueUint32) UIKey(level int, model *UIModel, insert bool, delete bool, up bool, down bool) + func (v *KernelValueUint32) UIStartEdit(level int, model *UIModel, createMode int) + func (v *KernelValueUint32) UIWrite(sb *strings.Builder, onPath bool, level int, model *UIModel) + func (v *KernelValueUint32) WriteJSON(w []byte, ctx *TLContext) []byte + func (v *KernelValueUint32) WriteTL1(w *ByteBuilder, bare bool, natArgs []uint32, onPath bool, level int, ...) []uint32 + func (v *KernelValueUint32) WriteTL2(w *ByteBuilder, optimizeEmpty bool, onPath bool, level int, model *UIModel) + type KernelValueUint64 struct + func (v *KernelValueUint64) Clone() KernelValue + func (v *KernelValueUint64) CompareForMapKey(other KernelValue) int + func (v *KernelValueUint64) Random(rg *rand.Rand) + func (v *KernelValueUint64) ReadTL1(r []byte, ctx *TLContext, bare bool, natArgs []uint32) ([]byte, []uint32, error) + func (v *KernelValueUint64) ReadTL2(r []byte, ctx *TLContext) ([]byte, error) + func (v *KernelValueUint64) Reset() + func (v *KernelValueUint64) SetFromEditor(str string) error + func (v *KernelValueUint64) UIFixPath(side int, level int, model *UIModel) int + func (v *KernelValueUint64) UIKey(level int, model *UIModel, insert bool, delete bool, up bool, down bool) + func (v *KernelValueUint64) UIStartEdit(level int, model *UIModel, createMode int) + func (v *KernelValueUint64) UIWrite(sb *strings.Builder, onPath bool, level int, model *UIModel) + func (v *KernelValueUint64) WriteJSON(w []byte, ctx *TLContext) []byte + func (v *KernelValueUint64) WriteTL1(w *ByteBuilder, bare bool, natArgs []uint32, onPath bool, level int, ...) []uint32 + func (v *KernelValueUint64) WriteTL2(w *ByteBuilder, optimizeEmpty bool, onPath bool, level int, model *UIModel) + type KernelValueUnion struct + func (v *KernelValueUnion) Clone() KernelValue + func (v *KernelValueUnion) CompareForMapKey(other KernelValue) int + func (v *KernelValueUnion) Random(rg *rand.Rand) + func (v *KernelValueUnion) ReadTL1(r []byte, ctx *TLContext, bare bool, natArgs []uint32) ([]byte, []uint32, error) + func (v *KernelValueUnion) ReadTL2(r []byte, ctx *TLContext) (_ []byte, err error) + func (v *KernelValueUnion) Reset() + func (v *KernelValueUnion) UIFixPath(side int, level int, model *UIModel) int + func (v *KernelValueUnion) UIKey(level int, model *UIModel, insert bool, delete bool, up bool, down bool) + func (v *KernelValueUnion) UIStartEdit(level int, model *UIModel, createMode int) + func (v *KernelValueUnion) UIWrite(sb *strings.Builder, onPath bool, level int, model *UIModel) + func (v *KernelValueUnion) WriteJSON(w []byte, ctx *TLContext) []byte + func (v *KernelValueUnion) WriteTL1(w *ByteBuilder, bare bool, natArgs []uint32, onPath bool, level int, ...) []uint32 + func (v *KernelValueUnion) WriteTL2(w *ByteBuilder, optimizeEmpty bool, onPath bool, level int, model *UIModel) + type TLContext struct + type UIBlinkMsg struct + On bool + type UIEditor interface + OnBackspace func(model *UIModel) + OnEnter func(model *UIModel) + OnEscape func(model *UIModel) + OnRune func(msg string, model *UIModel) + OnTab func(model *UIModel, side int) + UIWrite func(sb *strings.Builder, model *UIModel) + Value func() KernelValue + type UIEditorPrimitive struct + func (e *UIEditorPrimitive) OnBackspace(model *UIModel) + func (e *UIEditorPrimitive) OnEnter(model *UIModel) + func (e *UIEditorPrimitive) OnEscape(model *UIModel) + func (e *UIEditorPrimitive) OnRune(msg string, model *UIModel) + func (e *UIEditorPrimitive) OnTab(model *UIModel, side int) + func (e *UIEditorPrimitive) SetValue(v KernelValuePrimitive) + func (e *UIEditorPrimitive) UIWrite(sb *strings.Builder, model *UIModel) + func (e *UIEditorPrimitive) Value() KernelValue + type UIEditorString struct + func (e *UIEditorString) FinishOK() + func (e *UIEditorString) OnBackspace(model *UIModel) + func (e *UIEditorString) OnEnter(model *UIModel) + func (e *UIEditorString) OnEscape(model *UIModel) + func (e *UIEditorString) OnRune(msg string, model *UIModel) + func (e *UIEditorString) OnTab(model *UIModel, side int) + func (e *UIEditorString) SetValue(v *KernelValueString) + func (e *UIEditorString) UIWrite(sb *strings.Builder, model *UIModel) + func (e *UIEditorString) Value() KernelValue + type UIEditorUnion struct + func (e *UIEditorUnion) FinishOK() + func (e *UIEditorUnion) OnBackspace(model *UIModel) + func (e *UIEditorUnion) OnEnter(model *UIModel) + func (e *UIEditorUnion) OnEscape(model *UIModel) + func (e *UIEditorUnion) OnRune(msg string, model *UIModel) + func (e *UIEditorUnion) OnTab(model *UIModel, side int) + func (e *UIEditorUnion) SetValue(v *KernelValueUnion) + func (e *UIEditorUnion) UIWrite(sb *strings.Builder, model *UIModel) + func (e *UIEditorUnion) Value() KernelValue + type UIModel struct + Blink UIBlinkMsg + CurrentEditor UIEditor + EditorPrimitive UIEditorPrimitive + EditorString UIEditorString + EditorUnion UIEditorUnion + Fun KernelValueStruct + Height int + LastError error + Path []int + ShowLegend bool + Width int + func (m *UIModel) Move(side int) + func (m *UIModel) Right() + func (m *UIModel) SetCurrentEditor(e UIEditor) + func (m *UIModel) StartEdit(createMode int) + func (m *UIModel) View() string + func (m *UIModel) WriteCursor(sb *strings.Builder, text string)