github.com/soulteary/pocket-bookcase@v0.0.0-20240428065142-0b5a9a0fc98a/main.go (about) 1 package main 2 3 import ( 4 "github.com/sirupsen/logrus" 5 "github.com/soulteary/pocket-bookcase/internal/cmd" 6 "github.com/soulteary/pocket-bookcase/internal/model" 7 8 // Add this to prevent it removed by go mod tidy 9 _ "github.com/shurcooL/vfsgen" 10 ) 11 12 var ( 13 version = "dev" 14 commit = "none" 15 date = "unknown" 16 ) 17 18 func init() { 19 // Set globally 20 model.BuildVersion = version 21 model.BuildCommit = commit 22 model.BuildDate = date 23 } 24 25 func main() { 26 err := cmd.ShioriCmd().Execute() 27 if err != nil { 28 logrus.Fatalln(err) 29 } 30 }