Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
db25e787
Commit
db25e787
authored
Oct 26, 2008
by
Rob Pike
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix top-level comments
R=rsc DELTA=14 (13 added, 0 deleted, 1 changed) OCL=17858 CL=17867
parent
84b66d25
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
src/lib/fmt/format.go
src/lib/fmt/format.go
+3
-1
src/lib/fmt/print.go
src/lib/fmt/print.go
+5
-0
No files found.
src/lib/fmt/format.go
View file @
db25e787
...
...
@@ -5,10 +5,12 @@
package
fmt
/*
Raw formatter. See print.go for a more palatable interface.
f := fmt.New();
print f.d(1234).s("\n").str(); // create string, print it
f.d(-1234).s("\n").put(); // print string
f.ud(
^0
).putnl(); // print string with automatic newline
f.ud(
1<<63
).putnl(); // print string with automatic newline
*/
// export Fmt, New;
...
...
src/lib/fmt/print.go
View file @
db25e787
...
...
@@ -4,6 +4,11 @@
package
fmt
/*
C-like printf, but because of reflection knowledge does not need
to be told about sizes and signedness (no %llud etc. - just %d).
*/
import
(
"fmt"
;
"reflect"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment