12345678910111213141516171819202122232425262728293031323334 |
- package main
- import (
- "flag"
- "fmt"
- "os"
- "go-common/app/tool/liverpc/protoc-gen-liverpc/gen"
- )
- func main() {
- versionFlag := flag.Bool("version", false, "print version and exit")
- flag.Parse()
- if *versionFlag {
- fmt.Println(gen.Version)
- os.Exit(0)
- }
- g := liveRPCGenerator()
- gen.Main(g)
- }
|