mirror of https://github.com/miguelmota/cointop
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
224 B
Go
14 lines
224 B
Go
5 years ago
|
package format
|
||
|
|
||
|
import "strconv"
|
||
|
|
||
|
// Bool2String boolean to string
|
||
|
func Bool2String(b bool) string {
|
||
|
return strconv.FormatBool(b)
|
||
|
}
|
||
|
|
||
|
// Int2String Integer to string
|
||
|
func Int2String(i int) string {
|
||
|
return strconv.Itoa(i)
|
||
|
}
|