mirror of
https://github.com/golang/go
synced 2024-11-25 04:57:56 -07:00
fmt: document %X of string, []byte
suggested by Mark Summerfield R=r CC=golang-dev https://golang.org/cl/4018042
This commit is contained in:
parent
dfc5bb5ff6
commit
61a4e9812e
@ -36,7 +36,8 @@
|
|||||||
String and slice of bytes:
|
String and slice of bytes:
|
||||||
%s the uninterpreted bytes of the string or slice
|
%s the uninterpreted bytes of the string or slice
|
||||||
%q a double-quoted string safely escaped with Go syntax
|
%q a double-quoted string safely escaped with Go syntax
|
||||||
%x base 16 notation with two characters per byte
|
%x base 16, lower-case, two characters per byte
|
||||||
|
%X base 16, upper-case, two characters per byte
|
||||||
Pointer:
|
Pointer:
|
||||||
%p base 16 notation, with leading 0x
|
%p base 16 notation, with leading 0x
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user