Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
protoc-gen-go: format interfaces for gofmt 1.9 and 1.10 (#486)
Change the pre-gofmt generated code for oneof discriminant interfaces from: type T interface { T() } to: type T interface { T() } Prior to Go 1.9, gofmt rewrote the single-line form into the multi-line one. Go 1.10 and later preserve the single-line form for single-method interfaces. Generating code that is handled identically by both versions of gofmt avoids spurious diffs with golden test data. Change-Id: Ibb229827823a50e963bcd1b34e59a286654b415f
- Loading branch information