mirror of https://github.com/nmasse-itix/liche.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
298 B
16 lines
298 B
package main
|
|
|
|
import "github.com/fatih/color"
|
|
|
|
type urlResult struct {
|
|
url string
|
|
err error
|
|
}
|
|
|
|
func (r urlResult) String() string {
|
|
if r.err == nil {
|
|
return color.GreenString("OK") + "\t" + r.url
|
|
}
|
|
|
|
return color.RedString("ERROR") + "\t" + r.url + "\t" + color.YellowString(r.err.Error())
|
|
}
|
|
|