...

Package castx

import "github.com/ory/x/castx"
Overview
Index

Overview ▾

func ToFloatSlice

func ToFloatSlice(i interface{}) []float64

ToFloatSlice casts an interface to a []float64 type.

func ToFloatSliceE

func ToFloatSliceE(i interface{}) ([]float64, error)

ToFloatSliceE casts an interface to a []float64 type.

func ToStringSlice

func ToStringSlice(i interface{}) []string

ToStringSlice casts an interface to a []string type and respects comma-separated values.

func ToStringSliceE

func ToStringSliceE(i interface{}) ([]string, error)

ToStringSliceE casts an interface to a []string type and respects comma-separated values.