Golang strconv.ParseInt() and ParseUint() functions example
package strconv
Golang strconv.ParseInt() and ParseUint() functions usage example
package main
import (
"fmt"
"strconv"
)
func main() {
s := "123"
i, err := strconv.ParseInt(s, 10, 16)
if err != nil {
fmt.Println(err)
}
fmt.Println(i)
}
References :
Advertisement
Something interesting
Tutorials
+9.4k Golang : Apply Histogram Equalization to color images
+19.3k Golang : Get RGBA values of each image pixel
+10.9k Golang : Create Temporary File
+8.8k Golang : Executing and evaluating nested loop in html template
+5.2k Responsive Google Adsense
+7.4k Golang : Accessing dataframe-go element by row, column and name example
+20.7k Golang : Saving private and public key to files
+8.9k Golang : What is the default port number for connecting to MySQL/MariaDB database ?
+16.3k Golang : Find out mime type from bytes in buffer
+46.2k Golang : Read tab delimited file with encoding/csv package
+12.9k Golang : Convert IPv4 address to packed 32-bit binary format