Refactor
Signed-off-by: Oliver Davies <oliver@oliverdavies.uk>
This commit is contained in:
parent
a3202aaff3
commit
948872b933
7 changed files with 206 additions and 150 deletions
15
internal/zet/view.go
Normal file
15
internal/zet/view.go
Normal file
|
@ -0,0 +1,15 @@
|
|||
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)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue