nextgo

command module
v0.0.0-...-fc43d98 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 29, 2024 License: MIT Imports: 11 Imported by: 0

README

nextgo

your site, built now.

Try it out

# hit the http api server
go run github.com/justshare-io/nextgo@latest
curl --header "Content-Type: application/json" --data '{"name": "Jane"}' http://localhost:8080/greet.GreetService/Greet 

# ui for calling the grpc server, like postman.
go run github.com/fullstorydev/grpcui/cmd/grpcui@latest -plaintext localhost:8080

Learn

Code
  • server: I would start by reading the comments in main.go.
  • proto: greet.proto is the protobuf file that defines the service.
Proto

If you change the proto file, you need to regenerate the go code.

go install github.com/bufbuild/buf/cmd/buf@latest
go install github.com/fullstorydev/grpcurl/cmd/grpcurl@latest
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
go install connectrpc.com/connect/cmd/protoc-gen-connect-go@latest

go generate ./...
GPRC
go install github.com/fullstorydev/grpcui/cmd/grpcui@latest
grpcui -plaintext localhost:8080
Dependencies

Goals

  • Works today, tomorrow, and next year.
  • Scales with both your infra and team.
  • Easy to learn and fun to use.

Stack

  • go
    • grpc

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL