Created
January 13, 2019 10:08
-
-
Save amsokol/7f507d71e66c3476df4e7c1bfa5a616d to your computer and use it in GitHub Desktop.
flutter-grpc-tutorial.go-server.cmd.server.main.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"context" | |
"fmt" | |
"os" | |
"github.com/amsokol/flutter-grpc-tutorial/go-server/pkg/protocol/grpc" | |
"github.com/amsokol/flutter-grpc-tutorial/go-server/pkg/service/v1" | |
) | |
func main() { | |
if err := grpc.RunServer(context.Background(), v1.NewChatServiceServer(), "3000"); err != nil { | |
fmt.Fprintf(os.Stderr, "%v\n", err) | |
os.Exit(1) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment