Skip to content

Commit 5468c57

Browse files
author
wintrmvte
committed
Rename of conversion functions
1 parent 2db8b8a commit 5468c57

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

wrappers.go

+8-3
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,20 @@ func f(s string, arg ...interface{}) string {
1616
return fmt.Sprintf(s, arg...)
1717
}
1818

19-
// StrToInt converts a string into an integer.
20-
func StrToInt(string_integer string) int {
19+
// F is a wrapper for the Println function.
20+
func P() {
21+
fmt.Println()
22+
}
23+
24+
// Str2Int converts a string into an integer.
25+
func Str2Int(string_integer string) int {
2126
// i, _ := strconv.ParseInt(string_integer, 10, 32)
2227
i, _ := strconv.Atoi(string_integer)
2328
return i
2429
}
2530

2631
// IntToStr converts an integer into a string.
27-
func IntToStr(i int) string {
32+
func Int2Str(i int) string {
2833
return strconv.Itoa(i)
2934
}
3035

0 commit comments

Comments
 (0)