An open API service indexing awesome lists of open source software.

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

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
-----