mirror of
https://github.com/documize/community.git
synced 2025-07-23 23:29:42 +02:00
Bump version to 5.11.0
This commit is contained in:
parent
a32510b8e6
commit
510e1bd0bd
370 changed files with 18825 additions and 5454 deletions
2
vendor/github.com/fatih/structs/.travis.yml
generated
vendored
2
vendor/github.com/fatih/structs/.travis.yml
generated
vendored
|
@ -1,6 +1,8 @@
|
|||
language: go
|
||||
go:
|
||||
- 1.7.x
|
||||
- 1.8.x
|
||||
- 1.9.x
|
||||
- tip
|
||||
sudo: false
|
||||
before_install:
|
||||
|
|
4
vendor/github.com/fatih/structs/README.md
generated
vendored
4
vendor/github.com/fatih/structs/README.md
generated
vendored
|
@ -81,8 +81,8 @@ n := s.Names() // Get a []string
|
|||
f := s.Field(name) // Get a *Field based on the given field name
|
||||
f, ok := s.FieldOk(name) // Get a *Field based on the given field name
|
||||
n := s.Name() // Get the struct name
|
||||
h := s.HasZero() // Check if any field is initialized
|
||||
z := s.IsZero() // Check if all fields are initialized
|
||||
h := s.HasZero() // Check if any field is uninitialized
|
||||
z := s.IsZero() // Check if all fields are uninitialized
|
||||
```
|
||||
|
||||
### Field methods
|
||||
|
|
6
vendor/github.com/fatih/structs/structs.go
generated
vendored
6
vendor/github.com/fatih/structs/structs.go
generated
vendored
|
@ -203,9 +203,7 @@ func (s *Struct) Values() []interface{} {
|
|||
if IsStruct(val.Interface()) && !tagOpts.Has("omitnested") {
|
||||
// look out for embedded structs, and convert them to a
|
||||
// []interface{} to be added to the final values slice
|
||||
for _, embeddedVal := range Values(val.Interface()) {
|
||||
t = append(t, embeddedVal)
|
||||
}
|
||||
t = append(t, Values(val.Interface())...)
|
||||
} else {
|
||||
t = append(t, val.Interface())
|
||||
}
|
||||
|
@ -573,7 +571,7 @@ func (s *Struct) nested(val reflect.Value) interface{} {
|
|||
break
|
||||
}
|
||||
|
||||
slices := make([]interface{}, val.Len(), val.Len())
|
||||
slices := make([]interface{}, val.Len())
|
||||
for x := 0; x < val.Len(); x++ {
|
||||
slices[x] = s.nested(val.Index(x))
|
||||
}
|
||||
|
|
2
vendor/github.com/fatih/structs/tags.go
generated
vendored
2
vendor/github.com/fatih/structs/tags.go
generated
vendored
|
@ -5,7 +5,7 @@ import "strings"
|
|||
// tagOptions contains a slice of tag options
|
||||
type tagOptions []string
|
||||
|
||||
// Has returns true if the given optiton is available in tagOptions
|
||||
// Has returns true if the given option is available in tagOptions
|
||||
func (t tagOptions) Has(opt string) bool {
|
||||
for _, tagOpt := range t {
|
||||
if tagOpt == opt {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue