init 251117
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
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)
|
||||
}
|
||||
Reference in New Issue
Block a user