Paul Lecuq
36c5d6f2ed
- web service with json support - web page - cron service to update database infos
21 lines
233 B
Go
21 lines
233 B
Go
package here
|
|
|
|
import (
|
|
"fmt"
|
|
)
|
|
|
|
type Path struct {
|
|
Pkg string
|
|
Name string
|
|
}
|
|
|
|
func (p Path) String() string {
|
|
if p.Name == "" {
|
|
p.Name = "/"
|
|
}
|
|
if p.Pkg == "" {
|
|
return p.Name
|
|
}
|
|
return fmt.Sprintf("%s:%s", p.Pkg, p.Name)
|
|
}
|