12 lines
163 B
Go
12 lines
163 B
Go
|
package taskservice
|
||
|
|
||
|
import "fmt"
|
||
|
|
||
|
type TooOldError struct {
|
||
|
Name string
|
||
|
}
|
||
|
|
||
|
func (e TooOldError) Error() string {
|
||
|
return fmt.Sprintf("%s is too old!", e.Name)
|
||
|
}
|