func stringifyType()

in cfn/encoding/stringify.go [9:22]


func stringifyType(t reflect.Type) reflect.Type {
	switch t.Kind() {
	case reflect.Map:
		return reflect.MapOf(stringType, interfaceType)
	case reflect.Slice:
		return reflect.SliceOf(interfaceType)
	case reflect.Struct:
		return stringifyStructType(t)
	case reflect.Ptr:
		return stringifyType(t.Elem())
	default:
		return stringType
	}
}