Last active
November 4, 2018 17:39
-
-
Save Crilou/c831c94d9cfc3f4b0267d6baca31045c to your computer and use it in GitHub Desktop.
String
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
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