alecthomas / units Goto Github PK
View Code? Open in Web Editor NEWHelpful unit multipliers and functions for Go
License: MIT License
Helpful unit multipliers and functions for Go
License: MIT License
It would help to have a semver defined stable interface.
the API seems useful enough to lock it for a v1.
Please use semantic versioning:
Our project would like to make use of your units util but it seems to be without a license. Please state which license the software is available under. Thanks. If you let me know which, I'll put up a patch for you.
See the failed tests below.
Line 18 in bytes_test.go is fixed like so
assert.Equal(t, int64(0), int64(n))
=== RUN TestBase2BytesString
--- PASS: TestBase2BytesString (0.00s)
=== RUN TestParseBase2Bytes
--- FAIL: TestParseBase2Bytes (0.00s)
Error Trace: bytes_test.go:18
Error: Not equal: 0 (expected)
!= 0 (actual)
Error Trace: bytes_test.go:21
Error: Not equal: 1024 (expected)
!= 1024 (actual)
Error Trace: bytes_test.go:24
Error: Not equal: 1049625 (expected)
!= 1049625 (actual)
Error Trace: bytes_test.go:27
Error: Not equal: 1572864 (expected)
!= 1572864 (actual)
=== RUN TestMetricBytesString
--- PASS: TestMetricBytesString (0.00s)
=== RUN TestParseMetricBytes
--- FAIL: TestParseMetricBytes (0.00s)
Error Trace: bytes_test.go:39
Error: Not equal: 0 (expected)
!= 0 (actual)
Error Trace: bytes_test.go:42
Error: Not equal: 1001 (expected)
!= 1001 (actual)
Error Trace: bytes_test.go:45
Error: Not equal: 1001025 (expected)
!= 1001025 (actual)
Error Trace: bytes_test.go:48
Error: Not equal: 1500000 (expected)
!= 1500000 (actual)
FAIL
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
This repository currently has no open or pending branches.
go.mod
go 1.15
github.com/stretchr/testify v1.9.0
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.