Commit d6311ff1 authored by Russ Cox's avatar Russ Cox
Browse files

math/big: add %#b and %O integer formats

Matching fmt, %#b now prints an 0b prefix,
and %O prints octal with an 0o prefix.

See golang.org/design/19308-number-literals for background.

For #19308.
For #12711.

Change-Id: I139c5a9a1dfae15415621601edfa13c6a5f19cfc
Reviewed-on: https://go-review.googlesource.com/c/160250


Reviewed-by: default avatarRob Pike <r@golang.org>
Reviewed-by: default avatarRobert Griesemer <gri@golang.org>
parent 675503c5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment