Skip to content

Instantly share code, notes, and snippets.

@Crilou
Last active November 4, 2018 17:39
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 Crilou/c831c94d9cfc3f4b0267d6baca31045c to your computer and use it in GitHub Desktop.
Save Crilou/c831c94d9cfc3f4b0267d6baca31045c to your computer and use it in GitHub Desktop.
String
import "strings"
import "strconv"
Atoi (string=>int)
if s, err := strconv.Atoi(v); err == nil {}
Itoa (int=>string)
s := strconv.Itoa(i)
Contains ?
strings.Contains("seafood", "foo")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment