github.com/shogo82148/std@v1.22.1-0.20240327122250-4e474527810c/strconv/itoa.go (about) 1 // Copyright 2009 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package strconv 6 7 // FormatUintは、2 <= base <= 36の場合、iの文字列表現を指定された基数で返します。 8 // 結果は、10以上の桁の値に対して小文字の 'a' から 'z' を使用します。 9 func FormatUint(i uint64, base int) string 10 11 // FormatIntは、2 <= base <= 36の場合、iの文字列表現を指定された基数で返します。 12 // 結果は、10以上の桁の値に対して小文字の 'a' から 'z' を使用します。 13 func FormatInt(i int64, base int) string 14 15 // Itoaは、FormatInt(int64(i), 10)と同等です。 16 func Itoa(i int) string 17 18 // AppendIntは、FormatIntによって生成された整数iの文字列形式をdstに追加し、拡張されたバッファを返します。 19 func AppendInt(dst []byte, i int64, base int) []byte 20 21 // AppendUintは、FormatUintによって生成された符号なし整数iの文字列形式をdstに追加し、拡張されたバッファを返します。 22 func AppendUint(dst []byte, i uint64, base int) []byte