Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pbc-go
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Boston University PhD
IPFRE
pbc-go
Commits
12f3f0ab
Unverified
Commit
12f3f0ab
authored
Jun 6, 2018
by
Nik
Browse files
Options
Downloads
Patches
Plain Diff
Minor format and vet fixes
parent
f07cdfb1
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
doc_test.go
+5
-1
5 additions, 1 deletion
doc_test.go
utils.go
+2
-2
2 additions, 2 deletions
utils.go
with
7 additions
and
3 deletions
doc_test.go
+
5
−
1
View file @
12f3f0ab
...
@@ -50,7 +50,11 @@ func Example() {
...
@@ -50,7 +50,11 @@ func Example() {
}
}
// This example displays an element in a variety of formats.
// This example displays an element in a variety of formats.
func
ExampleElement_Format
(
element
*
pbc
.
Element
)
{
func
ExampleElement_Format
()
{
var
element
*
pbc
.
Element
// ...populate element...
fmt
.
Printf
(
"%v"
,
element
)
// Print in PBC format
fmt
.
Printf
(
"%v"
,
element
)
// Print in PBC format
fmt
.
Printf
(
"%s"
,
element
)
// Same as above
fmt
.
Printf
(
"%s"
,
element
)
// Same as above
fmt
.
Printf
(
"%36v"
,
element
)
// Print in PBC format, base 36
fmt
.
Printf
(
"%36v"
,
element
)
// Print in PBC format, base 36
...
...
This diff is collapsed.
Click to expand it.
utils.go
+
2
−
2
View file @
12f3f0ab
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment