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 Caller(skip int) *runtime.Func
- func CallerName(skip int) string
- func CallerNameFromFunc(f *runtime.Func) string
- func CallerType(skip int) string
- func CallerTypeFromFunc(f *runtime.Func) string
- func EqualStructs[A, B any]() bool
- func IsPublicType(typ reflect.Type) bool
- func Must[T any](v T, err error) T
- func ParseName(s string) (title, operationId string)
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddOperationToDocument ¶
func CallerName ¶
Example ¶
fmt.Println(CallerName(0))
Output: ExampleCallerName
func CallerNameFromFunc ¶ added in v0.6.0
func CallerType ¶
func CallerTypeFromFunc ¶ added in v0.6.0
func EqualStructs ¶
func IsPublicType ¶ added in v0.7.2
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.