samuel / go-thrift

A native Thrift package for Go
BSD 3-Clause "New" or "Revised" License
384 stars 110 forks source link

extends keywords is not #97

Open stuartjing opened 7 years ago

stuartjing commented 7 years ago

IDL: service Calculator extends shared.SharedService

is generate GO: type Calculator interface { Shared.SharedService Add(num1 int32, num2 int32) (int32, error) Calculate(logid int32, w *Work) (int32, error) Ping() error }

this Shared.SharedService is upper so in this code is not run.

tutorial

.\tutorial.go:7: imported and not used: "shared" .\tutorial.go:90: Shared is not a package .\tutorial.go:90: undefined: SharedService .\tutorial.go:97: Shared is not a package .\tutorial.go:149: Shared is not a package