package
Version:
v0.5.3
Opens a new window with list of versions in this module.
Published: Mar 8, 2024
License: GPL-3.0
Opens a new window with license information.
Imports: 24
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
const (
ExitCodeNoError = 0
ExitCodeMiscError = 1
ExitCodeBlockParsingError = 1 << 1
ExitCodeFormattingDiffError = 1 << 2
)
type Block struct {
BlockNumber int `json:"block_number"`
StartLine int `json:"start_line"`
EndLine int `json:"end_line"`
Text string `json:"text"`
}
type Output struct {
BlockCount int `json:"block_count"`
Blocks []Block `json:"blocks"`
}
MarshalJSON creates an empty slice if it is nil then marshals to JSON
Source Files
¶
Click to show internal directories.
Click to hide internal directories.