Hello,I'm trying to save the pid (an integer) to a file :file, _ := os.OpenFile("tmp/camo.pid", os.O_CREATE, 0600)file.WriteString(string(os.Getpid()))But the i can convert properly the integer to a string, i just get the ASCII caracter corresponding to the numberThanks
strconv.FormatInt and strconv.Atoi convert a string to an integer.Which function would do the opposite ?
Hello,I'm trying to save the pid (an integer) to a file :
file, _ := os.OpenFile("tmp/camo.pid", os.O_CREATE, 0600)file.WriteString(string(os.Getpid()))But the i can convert properly the integer to a string, i just get the ASCII caracter corresponding to the number