mirror of
https://github.com/Myzel394/config-lsp.git
synced 2025-06-19 15:35:28 +02:00
21 lines
450 B
Go
21 lines
450 B
Go
package shared
|
|
|
|
import "fmt"
|
|
|
|
type DuplicateHostEntry struct {
|
|
AlreadyFoundAt uint32
|
|
Hostname string
|
|
}
|
|
|
|
func (d DuplicateHostEntry) Error() string {
|
|
return fmt.Sprintf("'%s' already defined on line %d", d.Hostname, d.AlreadyFoundAt+1)
|
|
}
|
|
|
|
type DuplicateIPDeclaration struct {
|
|
AlreadyFoundAt uint32
|
|
}
|
|
|
|
func (d DuplicateIPDeclaration) Error() string {
|
|
return fmt.Sprintf("This IP address is already defined on line %d", d.AlreadyFoundAt+1)
|
|
}
|