Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- databaseCmd = &cobra.Command{
- Use: "database",
- Run: func(cmd *cobra.Command, args []string) {
- ctx := context.Background()
- err := database.Run(ctx, databaseRPCAddr)
- if err != nil {
- panic(err)
- }
- },
- }
- webserverCmd = &cobra.Command{
- Use: "webserver",
- Run: func(cmd *cobra.Command, args []string) {
- ctx := context.Background()
- fmt.Println("running")
- err := webserver.Run(ctx, localhost:8080, databaseRPCAddr, "./web", cache)
- if err != nil {
- panic(err)
- }
- },
- }
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement