add otel as separate module #10
@@ -52,6 +52,7 @@ linters:
|
|||||||
- maligned
|
- maligned
|
||||||
|
|
||||||
- depguard # need configure
|
- depguard # need configure
|
||||||
|
- nolintlint # use with space
|
||||||
|
|
||||||
issues:
|
issues:
|
||||||
# Excluding configuration per-path, per-linter, per-text and per-source
|
# Excluding configuration per-path, per-linter, per-text and per-source
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
//nolint: exhaustruct
|
// nolint: exhaustruct
|
||||||
package field
|
package field
|
||||||
|
|
||||||
import (
|
import (
|
||||||
@@ -504,7 +504,7 @@ func (v Value) append(dst []byte) []byte {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//nolint: gocyclo,cyclop
|
// nolint: gocyclo,cyclop
|
||||||
func (v Value) Any() any {
|
func (v Value) Any() any {
|
||||||
switch v.Kind {
|
switch v.Kind {
|
||||||
case KindAny, KindBinary:
|
case KindAny, KindBinary:
|
||||||
@@ -542,7 +542,7 @@ func (v Value) Any() any {
|
|||||||
return v.any
|
return v.any
|
||||||
}
|
}
|
||||||
|
|
||||||
//nolint: forcetypeassert
|
// nolint: forcetypeassert
|
||||||
func (v Value) AsString() string {
|
func (v Value) AsString() string {
|
||||||
if v.Kind != KindString {
|
if v.Kind != KindString {
|
||||||
return ""
|
return ""
|
||||||
|
|||||||
Reference in New Issue
Block a user