Skip to content

Commit

Permalink
fix golang-ci lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
glendc committed Oct 6, 2022
1 parent 1213e7f commit 4af0f76
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ linters:
disable-all: true
enable:
# Enabled by default
- deadcode
# - deadcode
# - errcheck
- gosimple
- govet
- ineffassign
- staticcheck
- structcheck
# - structcheck
- typecheck
- unused
- varcheck
# - varcheck

# Disabled by default
- asciicheck
Expand Down
16 changes: 8 additions & 8 deletions internal/bigquery/storage/encoding/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ import (
// this Encoder requires a lot of recflection as well as some possibly some extra trial-and-error.
//
// The following values can be encoded:
// - []byte, expected to be a Json encoded message from which it will proto-encode
// using a json-driven decoder (see the official protobuf protojson package);
// - JsonMarshaler, which will be Json-encoded to []byte
// and follow the same path as previous option from here;
// - string, expected to be a Text (human-friendly) encoded message from which it will
// proto-encode using a text-driven decoder (see the official protobuf prototext package);
// - Stringer, which will be stringified to string
// and follow the same path as previous option here;
// - []byte, expected to be a Json encoded message from which it will proto-encode
// using a json-driven decoder (see the official protobuf protojson package);
// - JsonMarshaler, which will be Json-encoded to []byte
// and follow the same path as previous option from here;
// - string, expected to be a Text (human-friendly) encoded message from which it will
// proto-encode using a text-driven decoder (see the official protobuf prototext package);
// - Stringer, which will be stringified to string
// and follow the same path as previous option here;
//
// Any value of a type different than the ones listed above will be attempted to be encoded
// using the bigquery.StructSaver in order to be able to via that long road to Json-Encode
Expand Down

0 comments on commit 4af0f76

Please sign in to comment.