extract

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2019 License: Apache-2.0 Imports: 8 Imported by: 6

Documentation

Overview

Package extract handles extraction of all raw API documentation lines and arrange them into main documentation block and a collection of endpoint documentation blocks.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Block

type Block struct {
	// File containing this block
	File string
	// Lines extracted from the file
	Lines []string
}

Block extracted raw documentation lines

type Extractor

type Extractor interface {
	// Extract the documentation from the file
	Extract(path string) ([]Block, error)
}

Extractor interface

func NewExtractor

func NewExtractor(verbose bool) Extractor

NewExtractor instance

Jump to

Keyboard shortcuts

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