10 examples of 'golang int64 to string' in Go

Every line of 'golang int64 to string' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your Go code is secure.

All examples are scanned by Snyk Code

By copying the Snyk Code Snippets you agree to
464func Int64ToStr(aval int64) string {
465 res := strconv.FormatInt(aval, 10)
466 return res
467}
648func sqlite3FnCastInt64ToString(i int64) string {
649 return strconv.FormatInt(i, 10)
650}
43func Int64ToStr(x int64) string {
44 return strconv.FormatInt(x, 10)
45}
250func Int64ToString(n int64) string {
251 buf := [11]byte{}
252 pos := len(buf)
253 signed := n < 0
254 if signed {
255 n = -n
256 }
257 for {
258 pos--
259 buf[pos], n = '0'+byte(n%10), n/10
260 if n == 0 {
261 if signed {
262 pos--
263 buf[pos] = '-'
264 }
265 return string(buf[pos:])
266 }
267 }
268}
104func intToInt64(to, from, _, _ string) string {
105 convStr := `
106 %[1]s = int64(%[2]s)
107 `
108 return fmt.Sprintf(convStr, to, from)
109}
55func UInt32ToStr(x uint32) string {
56 return strconv.FormatUint(uint64(x), 10)
57}
157func i64toc(i int64) *C.char {
158 return C.CString(i64toa(i))
159}
87func IntegerToString(value int64) (s string) {
88 s = strconv.FormatInt(value, 10)
89 return
90}
16func (stdRecipes) intToString(c Converter, in int, out *string) error {
17 *out = strconv.FormatInt(int64(in), 10)
18 return nil
19}
50func (stdRecipes) uint64ToInt64(c Converter, in uint64, out *int64) error {
51 *out = int64(in)
52 return nil
53}

Related snippets