https://github.com/rlespinasse/byteslice
Manipulate of byte slices with endianness ordering support
https://github.com/rlespinasse/byteslice
bytes endianness golang hacktoberfest manipulation slice
Last synced: about 1 month ago
JSON representation
Manipulate of byte slices with endianness ordering support
- Host: GitHub
- URL: https://github.com/rlespinasse/byteslice
- Owner: rlespinasse
- License: mit
- Archived: true
- Created: 2017-10-08T22:09:01.000Z (over 8 years ago)
- Default Branch: v0
- Last Pushed: 2020-10-19T21:33:02.000Z (over 5 years ago)
- Last Synced: 2025-08-15T08:33:32.835Z (7 months ago)
- Topics: bytes, endianness, golang, hacktoberfest, manipulation, slice
- Language: Go
- Homepage: https://godoc.org/github.com/rlespinasse/byteslice
- Size: 46.9 KB
- Stars: 5
- Watchers: 3
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.adoc
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
= byteslice
image:https://github.com/rlespinasse/byteslice/workflows/Test/badge.svg["Test Status", link="https://github.com/rlespinasse/byteslice/actions?query=workflow%3ATest"]
image:https://coveralls.io/repos/github/rlespinasse/byteslice/badge.svg?branch=v0["Coverage Status", link="https://coveralls.io/github/rlespinasse/byteslice?branch=v0"]
image:https://pkg.go.dev/badge/github.com/rlespinasse/byteslice["GoDoc", link="https://pkg.go.dev/github.com/rlespinasse/byteslice"]
image:https://goreportcard.com/badge/github.com/rlespinasse/byteslice["Go Report Card", link="https://goreportcard.com/report/github.com/rlespinasse/byteslice"]
== How to
Run `make help` to see the available commands.
=== test it with coverage
[source,shell]
-----
$ make test
ok github.com/rlespinasse/byteslice 0.007s coverage: 100.0% of statements
-----
=== launch the benchmark
[source,shell]
-----
$ make bench
goos: ...
goarch: ...
pkg: github.com/rlespinasse/byteslice
BenchmarkRBit/get_low_bit_of_high_nibble-8 2000000000 1.76 ns/op
BenchmarkRBit/get_low_bit-8 2000000000 1.76 ns/op
...
PASS
ok github.com/rlespinasse/byteslice 154.701s
-----