-
-
Save parzibyte/f6aeb3826d00bd9da002fa5df65466ff to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "strconv" | |
func stringToInt64(s string) (int64, error) { | |
numero, err := strconv.ParseInt(s, 0, 64) | |
if err != nil { | |
return 0, err | |
} | |
return numero, err | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment