{"version":"1.0","type":"rich","title":"Go func: convert map[string]string to map[string]int","description":"This example shows a small Go utility that converts a map with string values into a map with integer values, returning an error if any value cannot be parsed. It iterates over the input map, calling `strconv.Atoi` on each string value and storing the result in a new map. The function returns the partially built map along with the error when a conversion fails, otherwise it returns the fully converted map and a nil error. The code relies on the standard library’s `strconv` package for numeric conversion.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-8c61c4dba49ac2ec0c544c9522ecfe62?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}