Skip to content

Commit

Permalink
Merge pull request #81 from cockroachdb/mod
Browse files Browse the repository at this point in the history
Final cleanup before next release
  • Loading branch information
maddyblue authored Oct 17, 2018
2 parents a24032b + e517940 commit bced77f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion format.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ import (
// If format is a different character, Text returns a "%" followed by the
// unrecognized.Format character. The 'f' format has the possibility of
// displaying precision that is not present in the Decimal when it appends
// zeros. All other formats always show the exact precision of the Decimal.
// zeros (the 'g' format avoids the use of 'f' in this case). All other
// formats always show the exact precision of the Decimal.
func (d *Decimal) Text(format byte) string {
cap := 10 // TODO(gri) determine a good/better value here
return string(d.Append(make([]byte, 0, cap), format))
Expand Down
3 changes: 3 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module github.com/cockroachdb/apd

require github.com/pkg/errors v0.8.0
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github.com/pkg/errors v0.8.0 h1:WdK/asTD0HN+q6hsWO3/vpuAkAr+tw6aNJNDFFf0+qw=
github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=

0 comments on commit bced77f

Please sign in to comment.