Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save amsokol/7f507d71e66c3476df4e7c1bfa5a616d to your computer and use it in GitHub Desktop.
Save amsokol/7f507d71e66c3476df4e7c1bfa5a616d to your computer and use it in GitHub Desktop.
flutter-grpc-tutorial.go-server.cmd.server.main.go
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