cast
cast copied to clipboard
There are still many missing types, do we need to complete them?
The basic types are interface{}, bool, byte, string, int, int8, int16, int32, int64, uint, uint8, uint16, uint32, uint64, float32, float64, time.Time, time. Duration Corresponding slice type []interface{}, []bool, []byte, []string, []int, ......, []time.Duration The corresponding Map type map[string]interface{}, map[string]bool, map[string]byte, map[string]string, map[string]int, ......, map[ string]time. Map type of the corresponding slice type, map[string][]interface{}, map[string][]bool, map[string][]byte, map[string][]string, ......, map[ string][]time. The corresponding Map type slice type, []map[string]interface{}, ...... The corresponding slice type of Map type, []map[string][]interface{} OMG
Probably shouldn't discuss super complex combinations like [][][]map[string]map[string]map[string]map[string]map[string]map[string][][]interface{}, but the first and second level combinations mentioned above are probably necessary