摘要:
安装 go-playground/validator go get github.com/go-playground/validator/v10 代码如下 package main import ( "fmt" "net/http" "reflect" "strings" "github.com/g 阅读全文
摘要:
go代码 user.proto文件 syntax = "proto3"; option go_package = "./;proto"; message Teacher { string name = 1; repeated string course = 2; } 执行命令生成user.pb.go 阅读全文