encoder

package
v0.0.0-...-b3e4aef Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Encoder

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

func New

func New(opts ...Option) *Encoder

func (*Encoder) Cache

func (enc *Encoder) Cache() map[string]*oas.Schema

func (*Encoder) Encode

func (enc *Encoder) Encode(t reflect.Type) oas.Schema

type Option

type Option interface {
	// contains filtered or unexported methods
}

func WithNameFilter

func WithNameFilter(filter StringFilter) Option

func WithNullableMap

func WithNullableMap() Option

func WithNullableSlice

func WithNullableSlice() Option

type StringFilter

type StringFilter = func(string) string

Jump to

Keyboard shortcuts

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