{"id":1444,"date":"2020-02-23T07:00:34","date_gmt":"2020-02-23T07:00:34","guid":{"rendered":"https:\/\/golangbyexamples.com\/?p=1444"},"modified":"2020-02-23T07:19:44","modified_gmt":"2020-02-23T07:19:44","slug":"check-if-string-is-number-golang","status":"publish","type":"post","link":"https:\/\/golangbyexamples.com\/check-if-string-is-number-golang\/","title":{"rendered":"Check if a string is a number in Go (Golang)"},"content":{"rendered":"\n
strconv.Atoi()<\/strong> function can be used to check if the string is a number. If this function returns an error if the passed string is not a number. This function parses the number to base 10<\/p>\n\n\n\n