internal

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Example (CalcAllow)
str := []byte("FooBAR")

fmt.Println(calcAlloc(str))
Output:

7

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddOperationToDocument

func AddOperationToDocument(doc *openapi.Document, path string, op *openapi.Operation) (err error)

func CallerName

func CallerName(skip int) string
Example
fmt.Println(CallerName(0))
Output:

ExampleCallerName

func CallerType

func CallerType(skip int) string

func EqualStructs

func EqualStructs[A, B any]() bool

func Must

func Must[T any](v T, err error) T

Panics if err != nil.

func ParseName

func ParseName(s string) (title, operationId string)
Example
str := "FooBarBazASD_haha"

fmt.Println(ParseName(str))
Output:

Foo bar baz ASD haha foo-bar-baz-asd-haha

Types

type JSONPool

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

func NewJSONPool

func NewJSONPool(api jsoniter.API, bufSize ...int) *JSONPool

func (*JSONPool) AcquireIterator

func (p *JSONPool) AcquireIterator(r io.Reader) *jsoniter.Iterator

func (*JSONPool) AcquireStream

func (p *JSONPool) AcquireStream(w io.Writer) *jsoniter.Stream

func (*JSONPool) DecoderOf

func (p *JSONPool) DecoderOf(typ reflect.Type) jsoniter.ValDecoder

func (*JSONPool) EncoderOf

func (p *JSONPool) EncoderOf(typ reflect.Type) jsoniter.ValEncoder

func (*JSONPool) ReleaseIterator

func (p *JSONPool) ReleaseIterator(iter *jsoniter.Iterator)

func (*JSONPool) ReleaseStream

func (p *JSONPool) ReleaseStream(s *jsoniter.Stream)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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