package server import ( "fmt" "path" ) type Path struct { dir string base string } func (p Path) String() string { return path.Join(p.dir, p.base) } func (p Path) LI() string { content := fmt.Sprintf("
  • ", p.String()) content += p.base content += "
  • " return content }