Documentation
¶
Index ¶
- func BytesToString(b []byte) string
- func Intern(buf []byte) string
- func Marshal(data interface{}) ([]byte, error)
- func MarshalToBuffer(data interface{}, buf *bytes.Buffer) error
- func Unmarshal[T any](data []byte, target *T) error
- func UnmarshalConfig[T any](config interface{}, target *T) error
- type JSONBufferPool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesToString ¶
func MarshalToBuffer ¶
func UnmarshalConfig ¶
Types ¶
type JSONBufferPool ¶
type JSONBufferPool struct {
// contains filtered or unexported fields
}
func (*JSONBufferPool) Get ¶
func (p *JSONBufferPool) Get() *bytes.Buffer
func (*JSONBufferPool) Put ¶
func (p *JSONBufferPool) Put(buf *bytes.Buffer)
Click to show internal directories.
Click to hide internal directories.