github.com/songzhibin97/gkit@v1.2.13/parser/parse_pb/model_test.go (about)

     1  package parse_pb
     2  
     3  import "testing"
     4  
     5  func TestParsePb(t *testing.T) {
     6  	r, err := ParsePb("/Users/songzhibin/go/src/github.com/songzhibin97/gkit/parse/demo/test.proto")
     7  	if err != nil {
     8  		panic(err)
     9  	}
    10  	t.Log(r.Generate())
    11  }