【Gin⭐010】Go语言Gin框架-返回protobuf
下面是gin返回protobuf对象,在client端获取出来后,用protobuf在解析出来的过程。go语言文件syntax = "proto3";option go_package = "./;proto";message Teacher{ string name = 1; repeated string course = 2;}package mainimport ("net/http""github.com/gin