Documentation ¶
Index ¶
- type Base64Data
- func (b Base64Data) ConvToString() string
- func (b *Base64Data) CopyIn(text []byte)
- func (b Base64Data) Debug_dec(db bool, name string)
- func (b Base64Data) Debug_hex(db bool, name string)
- func (b Base64Data) Int32Array() []int32
- func (b Base64Data) Int64Array() []int64
- func (b Base64Data) IsEmpty() bool
- func (b Base64Data) MarshalText() ([]byte, error)
- func (b Base64Data) Uint32Array() []uint32
- func (b *Base64Data) UnmarshalText(text []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Base64Data ¶
type Base64Data []byte
Base64Data extends the JSON marshal/unmarshal interface to support Base64 data.
func (Base64Data) ConvToString ¶
func (b Base64Data) ConvToString() string
func (*Base64Data) CopyIn ¶
func (b *Base64Data) CopyIn(text []byte)
func (Base64Data) Debug_dec ¶
func (b Base64Data) Debug_dec(db bool, name string)
func (Base64Data) Debug_hex ¶
func (b Base64Data) Debug_hex(db bool, name string)
func (Base64Data) Int32Array ¶
func (b Base64Data) Int32Array() []int32
int32Array is an hack used for some debug output to approximate what the JavaScript implementation will print/show when running it in a console.
func (Base64Data) Int64Array ¶
func (b Base64Data) Int64Array() []int64
func (Base64Data) IsEmpty ¶
func (b Base64Data) IsEmpty() bool
func (Base64Data) MarshalText ¶
func (b Base64Data) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaller - convert to Base64 on output.
func (Base64Data) Uint32Array ¶
func (b Base64Data) Uint32Array() []uint32
Implement an output conversion for debuging that matches what SJCL shows on the SJCL demo page.
func (*Base64Data) UnmarshalText ¶
func (b *Base64Data) UnmarshalText(text []byte) error
UnmarshalText implements encoding.TextUnmarshaller - convert from Base64 to byte.
Click to show internal directories.
Click to hide internal directories.