mirror of
https://github.com/cwinfo/matterbridge.git
synced 2024-11-27 06:31:36 +00:00
13 lines
239 B
Go
13 lines
239 B
Go
|
package source
|
||
|
|
||
|
// Pos represents a position in the file set.
|
||
|
type Pos int
|
||
|
|
||
|
// NoPos represents an invalid position.
|
||
|
const NoPos Pos = 0
|
||
|
|
||
|
// IsValid returns true if the position is valid.
|
||
|
func (p Pos) IsValid() bool {
|
||
|
return p != NoPos
|
||
|
}
|