You've already forked opentelemetry-go
mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2025-11-27 22:49:15 +02:00
Use gofumpt instead of gofmt (#4623)
* Use gofumpt instead of gofmt in golangci-lint conf * Run gofumpt fixes * Format generated templates --------- Co-authored-by: Chester Cheung <cheung.zhy.csu@gmail.com>
This commit is contained in:
@@ -39,16 +39,20 @@ var wrapBoolSliceValue = func(v interface{}) interface{} {
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
var wrapStringSliceValue = func(v interface{}) interface{} {
|
||||
if vi, ok := v.([]string); ok {
|
||||
return StringSliceValue(vi)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
var wrapAsBoolSlice = func(v interface{}) interface{} { return AsBoolSlice(v) }
|
||||
var wrapAsInt64Slice = func(v interface{}) interface{} { return AsInt64Slice(v) }
|
||||
var wrapAsFloat64Slice = func(v interface{}) interface{} { return AsFloat64Slice(v) }
|
||||
var wrapAsStringSlice = func(v interface{}) interface{} { return AsStringSlice(v) }
|
||||
|
||||
var (
|
||||
wrapAsBoolSlice = func(v interface{}) interface{} { return AsBoolSlice(v) }
|
||||
wrapAsInt64Slice = func(v interface{}) interface{} { return AsInt64Slice(v) }
|
||||
wrapAsFloat64Slice = func(v interface{}) interface{} { return AsFloat64Slice(v) }
|
||||
wrapAsStringSlice = func(v interface{}) interface{} { return AsStringSlice(v) }
|
||||
)
|
||||
|
||||
func TestSliceValue(t *testing.T) {
|
||||
type args struct {
|
||||
|
||||
Reference in New Issue
Block a user