Discover Packages
github.com/maxatome/go-testdeep
internal
flat
package
Version:
v1.9.2
Opens a new window with list of versions in this module.
Published: Mar 18, 2021
License: BSD-2-Clause
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
func Interfaces(items ...interface{}) []interface{}
Interfaces returns the items values as a slice of
interface{}. Nested Slice items are flattened.
func Len(items []interface{}) (int , bool )
Len returns the number of items contained in items. Nested Slice
items are counted as if they are flattened. It returns true if at
least one Slice item is found, false otherwise.
Values returns the items values as a slice of reflect.Value. Nested
Slice items are flattened.
type Slice struct {
Slice interface{}
}
Slice allows to flatten any slice, array or map.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.