1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-11-25 22:41:46 +02:00

Enable golint & gofmt, resolve issues (#214)

* Add golint to linters and resolve issues.

I decided to remove constructors for some of the propagation types
because the constructors can be reduced to either using the zero value
or a single, non optional member.

* Enable gofmt and commit fixes
This commit is contained in:
Edward Muller
2019-10-16 10:24:38 -07:00
committed by rghetia
parent 0fd077287b
commit 9f03360a84
22 changed files with 105 additions and 99 deletions

View File

@@ -27,7 +27,7 @@ var _ apipropagation.BinaryFormatPropagator = binaryPropagator{}
// BinaryPropagator creates a new propagator. The propagator implements
// ToBytes and FromBytes method to transform SpanContext to/from byte array.
func BinaryPropagator() binaryPropagator {
func BinaryPropagator() apipropagation.BinaryFormatPropagator {
return binaryPropagator{}
}