Split into packages only manually tested
This commit is contained in:
12
filetree/paths.go
Executable file
12
filetree/paths.go
Executable file
@@ -0,0 +1,12 @@
|
||||
package filetree
|
||||
|
||||
type Paths []Path
|
||||
|
||||
func (p Paths) List() string {
|
||||
content := "<ul>\n"
|
||||
for _, path := range p {
|
||||
content += path.LI() + "\n"
|
||||
}
|
||||
content += "</ul>\n"
|
||||
return content
|
||||
}
|
||||
Reference in New Issue
Block a user