func()

in pkg/cli/types.go [110:129]


func (*CommandLineInterface) Int32Me(i interface{}) *int32 {
	if i == nil {
		return nil
	}
	switch v := i.(type) {
	case *int:
		val := int32(*v)
		return &val
	case int:
		val := int32(v)
		return &val
	case *int32:
		return v
	case int32:
		return &v
	default:
		log.Printf("%s cannot be converted to an int32", i)
		return nil
	}
}