Documentation
¶
Index ¶
- Constants
- func DetectNewLineSymbol(content bytes.Bytes) byte
- func GetQuote(content bytes.Bytes, position bytes.Index, nl byte) string
- func LineBeginning(content bytes.Bytes, position bytes.Index, nl byte) bytes.Index
- func LineEnd(content bytes.Bytes, position bytes.Index, nl byte) bytes.Index
- func LineNumber(content bytes.Bytes, position bytes.Index, nl byte) bytes.Index
- func PositionInLine(content bytes.Bytes, position bytes.Index, nl byte) bytes.Index
- type JAPIError
- type Location
Constants ¶
View Source
const ( RequiredParameterNotSpecified = "required parameter not specified" ParametersAreForbiddenForTheDirective = "parameters are forbidden for the directive" AnnotationIsForbiddenForTheDirective = "annotation is forbidden for the directive" EmptyDescription = "empty description" EmptyBody = "empty body" ResourceNotFound = "resource not found" ResponsesIsEmpty = "responses is empty" RequestIsEmpty = "request is empty" NotUniqueDirective = "not a unique directive" IncorrectParameter = "incorrect parameter" BodyMustBeObject = "body must be object" IsNotHTTPRequestMethod = "directive is not a HTTP request method" MethodNotFound = "method not found" PathNotFound = "path not found" IncorrectPath = "incorrect path" CannotUseTheTypeAndSchemaNotationParametersTogether = "cannot use the Type and SchemaNotation parameters together" IncorrectContextOfDirective = "incorrect context of directive" ThereIsNoExplicitContextForClosure = "there is no explicit context for closure" )
Variables ¶
This section is empty.
Functions ¶
func DetectNewLineSymbol ¶
func LineBeginning ¶
LineBeginning Before calling this method, you must run the e.preparation()
func LineNumber ¶
LineNumber return 0 if cannot determine the line number, or 1+ if it can
Types ¶
type Location ¶
type Location struct {
// contains filtered or unexported fields
}
func NewLocation ¶
NewLocation a bit optimized version of getting all info
Click to show internal directories.
Click to hide internal directories.