util

package
v0.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 4, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MapToSpecSchema added in v0.5.1

func MapToSpecSchema(obj interface{}) (*spec.Schema, error)

func Reverse added in v0.5.0

func Reverse(ss []string)

func StructToMap added in v0.5.1

func StructToMap(obj interface{}) (map[string]interface{}, error)

Types

type Buffer

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

func NewBuffer

func NewBuffer() *Buffer

func (*Buffer) Bytes

func (b *Buffer) Bytes() []byte

func (*Buffer) Reset

func (b *Buffer) Reset()

func (*Buffer) Sprintf

func (b *Buffer) Sprintf(s string, vals ...interface{})

func (*Buffer) String

func (b *Buffer) String() string

func (*Buffer) Write

func (b *Buffer) Write(p []byte) (n int, err error)

func (*Buffer) WriteBuffer

func (b *Buffer) WriteBuffer(other *Buffer)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL