We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2db8b8a commit 5468c57Copy full SHA for 5468c57
wrappers.go
@@ -16,15 +16,20 @@ func f(s string, arg ...interface{}) string {
16
return fmt.Sprintf(s, arg...)
17
}
18
19
-// StrToInt converts a string into an integer.
20
-func StrToInt(string_integer string) int {
+// F is a wrapper for the Println function.
+func P() {
21
+ fmt.Println()
22
+}
23
+
24
+// Str2Int converts a string into an integer.
25
+func Str2Int(string_integer string) int {
26
// i, _ := strconv.ParseInt(string_integer, 10, 32)
27
i, _ := strconv.Atoi(string_integer)
28
return i
29
30
31
// IntToStr converts an integer into a string.
-func IntToStr(i int) string {
32
+func Int2Str(i int) string {
33
return strconv.Itoa(i)
34
35
0 commit comments