Documentation ¶ Index ¶ type Cli func New(opts docopt.Opts) Cli func (h Cli) NewConverterAndReader() (Converter, io.Reader, error) type Converter Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Cli ¶ type Cli struct { docopt.Opts // contains filtered or unexported fields } Cli is a helper type that allows you to instantiate the AsyncAPI Converter and io.Reader of the converted document with arguments passed from the terminal. func New ¶ func New(opts docopt.Opts) Cli New returns a new Cli instance. func (Cli) NewConverterAndReader ¶ func (h Cli) NewConverterAndReader() (Converter, io.Reader, error) NewConverterAndReader creates both a converter and a reader of the converted AsyncAPI document. type Converter ¶ type Converter interface { Convert(reader io.Reader, writer io.Writer) error } Converter converts an AsyncAPI document. Source Files ¶ View all Source files cli.go Click to show internal directories. Click to hide internal directories.