Documentation
¶
Overview ¶
Example (CalcAllow) ¶
str := []byte("FooBAR")
fmt.Println(calcAlloc(str))
Output: 7
Index ¶
- func AddOperationToDocument(doc *openapi.Document, path string, op *openapi.Operation) (err error)
- func CallerName(skip int) string
- func CallerType(skip int) string
- func EqualStructs[A, B any]() bool
- func Must[T any](v T, err error) T
- func ParseName(s string) (title, operationId string)
- type JSONPool
- func (p *JSONPool) AcquireIterator(r io.Reader) *jsoniter.Iterator
- func (p *JSONPool) AcquireStream(w io.Writer) *jsoniter.Stream
- func (p *JSONPool) DecoderOf(typ reflect.Type) jsoniter.ValDecoder
- func (p *JSONPool) EncoderOf(typ reflect.Type) jsoniter.ValEncoder
- func (p *JSONPool) ReleaseIterator(iter *jsoniter.Iterator)
- func (p *JSONPool) ReleaseStream(s *jsoniter.Stream)
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddOperationToDocument ¶
func CallerName ¶
Example ¶
fmt.Println(CallerName(0))
Output: ExampleCallerName
func CallerType ¶
func EqualStructs ¶
Types ¶
type JSONPool ¶
type JSONPool struct {
// contains filtered or unexported fields
}
func (*JSONPool) AcquireIterator ¶
func (*JSONPool) ReleaseIterator ¶
func (*JSONPool) ReleaseStream ¶
Click to show internal directories.
Click to hide internal directories.