pkger/examples/complex/main.go

27 lines
336 B
Go
Raw Normal View History

2019-10-09 20:21:54 +03:00
package main
import (
"fmt"
"log"
"github.com/markbates/pkger/examples/complex/api"
)
const host = ":3000"
func main() {
v, err := api.Version()
if err != nil {
log.Fatal(err)
}
fmt.Println("Version: ", v)
if err := writeFile(); err != nil {
log.Fatal(err)
}
if err := readFile(); err != nil {
log.Fatal(err)
}
}