game2html added

This commit is contained in:
ed 2020-01-04 16:37:00 +01:00
parent 13c42b1ec2
commit 50fdd4687e
1 changed files with 8 additions and 1 deletions

View File

@ -96,9 +96,16 @@ func fparse(fname string) Game{
return game
}
func game2html(game Game) {
for p := 0; p < len(game.Pages); p++ {
fmt.Println(game.Pages[p])
}
}
func main() {
game := fparse("model")
//fmt.Println(game)
//fmt.Println(len(game.Pages))
game2html(game)
/*
l1 := hlink{url:"01.html",text:"First"}
l2 := hlink{url:"02.html",text:"Second"}