revision
packageThis package is not in the latest version of its module.
Details
Valid go.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Overview¶
Package revision extracts git revision from stringMore informations about revision :https://www.kernel.org/pub/software/scm/git/docs/gitrevisions.html
Index¶
Constants¶
This section is empty.
Variables¶
This section is empty.
Functions¶
This section is empty.
Types¶
typeColonStagePath¶
ColonStagePath represents :<n>:/<path>
typeErrInvalidRevision¶
type ErrInvalidRevision struct {// contains filtered or unexported fields}ErrInvalidRevision is emitted if string doesn't match valid revision
func (*ErrInvalidRevision)Error¶
func (e *ErrInvalidRevision) Error()string
typeParser¶
type Parser struct {// contains filtered or unexported fields}Parser represents a parseruse to tokenize and transform to revisioner chunksa given string
funcNewParserFromString¶
NewParserFromString returns a new instance of parser from a string.
func (*Parser)Parse¶
func (p *Parser) Parse() ([]Revisioner,error)
Parse explode a revision string into revisioner chunks
typeRevisioner¶
type Revisioner interface {}Revisioner represents a revision component.A revision is made of multiple revision componentsobtained after parsing a revision string,for instance revision "master~" will be converted intwo revision components Ref and TildePath