15 lines
291 B
Go
15 lines
291 B
Go
package zet
|
|
|
|
import (
|
|
"path"
|
|
"strconv"
|
|
|
|
"code.oliverdavies.uk/opdavies/cmd-zet/internal/config"
|
|
"code.oliverdavies.uk/opdavies/cmd-zet/internal/file"
|
|
)
|
|
|
|
func ViewZet(id int) string {
|
|
zetPath := path.Join(config.GetZetDir(), strconv.Itoa(id), "index.adoc")
|
|
|
|
return file.View(zetPath)
|
|
}
|