Documentation
¶
Overview ¶
Package strconv provides a mockable wrapper for strconv.
Index ¶
- type Impl
- func (*Impl) AppendBool(dst []byte, b bool) []byte
- func (*Impl) AppendFloat(dst []byte, f float64, fmt byte, prec int, bitSize int) []byte
- func (*Impl) AppendInt(dst []byte, i int64, base int) []byte
- func (*Impl) AppendQuote(dst []byte, s string) []byte
- func (*Impl) AppendQuoteRune(dst []byte, r rune) []byte
- func (*Impl) AppendQuoteRuneToASCII(dst []byte, r rune) []byte
- func (*Impl) AppendQuoteRuneToGraphic(dst []byte, r rune) []byte
- func (*Impl) AppendQuoteToASCII(dst []byte, s string) []byte
- func (*Impl) AppendQuoteToGraphic(dst []byte, s string) []byte
- func (*Impl) AppendUint(dst []byte, i uint64, base int) []byte
- func (*Impl) Atoi(s string) (int, error)
- func (*Impl) CanBackquote(s string) bool
- func (*Impl) FormatBool(b bool) string
- func (*Impl) FormatComplex(c complex128, fmt byte, prec int, bitSize int) string
- func (*Impl) FormatFloat(f float64, fmt byte, prec int, bitSize int) string
- func (*Impl) FormatInt(i int64, base int) string
- func (*Impl) FormatUint(i uint64, base int) string
- func (*Impl) IsGraphic(r rune) bool
- func (*Impl) IsPrint(r rune) bool
- func (*Impl) Itoa(i int) string
- func (*Impl) ParseBool(str string) (bool, error)
- func (*Impl) ParseComplex(s string, bitSize int) (complex128, error)
- func (*Impl) ParseFloat(s string, bitSize int) (float64, error)
- func (*Impl) ParseInt(s string, base int, bitSize int) (i int64, err error)
- func (*Impl) ParseUint(s string, base int, bitSize int) (uint64, error)
- func (*Impl) Quote(s string) string
- func (*Impl) QuoteRune(r rune) string
- func (*Impl) QuoteRuneToASCII(r rune) string
- func (*Impl) QuoteRuneToGraphic(r rune) string
- func (*Impl) QuoteToASCII(s string) string
- func (*Impl) QuoteToGraphic(s string) string
- func (*Impl) QuotedPrefix(s string) (string, error)
- func (*Impl) Unquote(s string) (string, error)
- func (*Impl) UnquoteChar(s string, quote byte) (value rune, multibyte bool, tail string, err error)
- type Interface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Impl ¶
type Impl struct{}
func (*Impl) AppendFloat ¶
func (*Impl) AppendQuoteRuneToASCII ¶
func (*Impl) AppendQuoteRuneToGraphic ¶
func (*Impl) CanBackquote ¶
func (*Impl) FormatBool ¶
func (*Impl) FormatComplex ¶
func (*Impl) FormatFloat ¶
func (*Impl) ParseComplex ¶
func (*Impl) ParseComplex(s string, bitSize int) (complex128, error)
func (*Impl) QuoteRuneToASCII ¶
func (*Impl) QuoteRuneToGraphic ¶
func (*Impl) QuoteToASCII ¶
func (*Impl) QuoteToGraphic ¶
type Interface ¶
type Interface interface { AppendBool(dst []byte, b bool) []byte AppendFloat(dst []byte, f float64, fmt byte, prec int, bitSize int) []byte AppendInt(dst []byte, i int64, base int) []byte AppendQuote(dst []byte, s string) []byte AppendQuoteRune(dst []byte, r rune) []byte AppendQuoteRuneToASCII(dst []byte, r rune) []byte AppendQuoteRuneToGraphic(dst []byte, r rune) []byte AppendQuoteToASCII(dst []byte, s string) []byte AppendQuoteToGraphic(dst []byte, s string) []byte AppendUint(dst []byte, i uint64, base int) []byte Atoi(s string) (int, error) CanBackquote(s string) bool FormatBool(b bool) string FormatComplex(c complex128, fmt byte, prec int, bitSize int) string FormatFloat(f float64, fmt byte, prec int, bitSize int) string FormatInt(i int64, base int) string FormatUint(i uint64, base int) string IsGraphic(r rune) bool IsPrint(r rune) bool Itoa(i int) string ParseBool(str string) (bool, error) ParseComplex(s string, bitSize int) (complex128, error) ParseFloat(s string, bitSize int) (float64, error) ParseInt(s string, base int, bitSize int) (i int64, err error) ParseUint(s string, base int, bitSize int) (uint64, error) Quote(s string) string QuoteRune(r rune) string QuoteRuneToASCII(r rune) string QuoteRuneToGraphic(r rune) string QuoteToASCII(s string) string QuoteToGraphic(s string) string QuotedPrefix(s string) (string, error) Unquote(s string) (string, error) UnquoteChar(s string, quote byte) (value rune, multibyte bool, tail string, err error) }
Click to show internal directories.
Click to hide internal directories.