slices

package
v1.4.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToInterfaceSlice

func ToInterfaceSlice(slice interface{}) (resp []interface{})

ToInterfaceSlice converts any slice into a slice of empty interfaces.

If the input argument is not a slice it panics.

Types

type ToInterfaceSlicer

type ToInterfaceSlicer interface {
	ToInterfaceSlice() []interface{}
}

ToInterfaceSlicer describes objects that can be converted to a list of interfaces

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL