Download pkg/utils/map.go from lin7zhi/OpenList: direct link, hf CLI and curl.
- Browser
- Download file 213 Bytes
-
https://huggingface.co/spaces/lin7zhi/OpenList/resolve/main/pkg/utils/map.go
- Command line
-
hf download hf://spaces/lin7zhi/OpenList/pkg/utils/map.go
-
curl -L -o map.go https://huggingface.co/spaces/lin7zhi/OpenList/resolve/main/pkg/utils/map.go
213 Bytes
| package utils | |
| func MergeMap(mObj ...map[string]interface{}) map[string]interface{} { | |
| newObj := map[string]interface{}{} | |
| for _, m := range mObj { | |
| for k, v := range m { | |
| newObj[k] = v | |
| } | |
| } | |
| return newObj | |
| } | |