Documentation ¶
Index ¶
Constants ¶
View Source
const ( // SourceFormatUnknown represents an unrecognized source format SourceFormatUnknown = 0 // SourceFormatOpenAPI2 represents an OpenAPI v2 document SourceFormatOpenAPI2 = 2 // SourceFormatOpenAPI3 represents an OpenAPI v3 document SourceFormatOpenAPI3 = 3 // SourceFormatDiscovery represents a Google Discovery document SourceFormatDiscovery = 4 )
Variables ¶
This section is empty.
Functions ¶
func NewUsageError ¶
NewUsageError returns a new usage error with the specified message.
Types ¶
type Gnostic ¶
type Gnostic struct {
// contains filtered or unexported fields
}
The Gnostic structure holds global state information for gnostic.
func NewGnostic ¶
NewGnostic initializes a structure to store global application state.
func (*Gnostic) ReadOpenAPIText ¶
type UsageError ¶
type UsageError struct {
// contains filtered or unexported fields
}
UsageError is a response to invalid command-line inputs and should trigger display of usage (help) information.
func (*UsageError) Error ¶
func (e *UsageError) Error() string
Click to show internal directories.
Click to hide internal directories.