Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FileDecoder ¶
type FileDecoder struct {
// contains filtered or unexported fields
}
FileDecoder is a type that can be used to decodes files of different formats into a go type.
func NewFileDecoder ¶
func NewFileDecoder(fileSystem fs.FS, file string) (*FileDecoder, error)
NewFileDecoder opens the file and creates a decoder based on the file extension. If the file extension is not supported it returns an error. NewFileDecoder does not close the opened file, for the file to be closed you have to call the Decode method.
func (*FileDecoder) Decode ¶
func (f *FileDecoder) Decode(v interface{}) error
Decode decodes the contents of the file into v and closes it
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
gen
|
|
admin
Package admin provides primitives to interact with the openapi HTTP API.
|
Package admin provides primitives to interact with the openapi HTTP API. |
client
Package client provides primitives to interact with the openapi HTTP API.
|
Package client provides primitives to interact with the openapi HTTP API. |
tests
|
|
Click to show internal directories.
Click to hide internal directories.