Files
2025-11-17 23:25:36 +09:00

25 lines
377 B
Go

package main
import (
"fmt"
entity "grpccanary/examples/grpcentity"
"grpccanary/examples/jsonexample"
"time"
)
var port = ":8080"
func main() {
jsonexample.JsonParsingExample()
}
func grpcSample() {
go entity.ServerRun(port)
// Just to be sure that the server is running
time.Sleep(1 * time.Second)
fmt.Println("Client:")
entity.ClientRun("localhost" + port)
}