Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created October 12, 2020 04:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/f6aeb3826d00bd9da002fa5df65466ff to your computer and use it in GitHub Desktop.
Save parzibyte/f6aeb3826d00bd9da002fa5df65466ff to your computer and use it in GitHub Desktop.
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