From a9337933f7b81f30f8c04d641b6d8db2ea04d616 Mon Sep 17 00:00:00 2001 From: Charles Iliya Krempeaux Date: Thu, 26 Oct 2023 17:01:40 -0700 Subject: [PATCH] initial commits --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index 8c13687..489a209 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,22 @@ Online documentation, which includes examples, can be found at: http://godoc.org [![GoDoc](https://godoc.org/sourcecode.social/reiver/go-hexadeca?status.svg)](https://godoc.org/sourcecode.social/reiver/go-hexadeca) +## Example + +```go +import "sourceccode.social/reiver/go-hexadeca" + +// ... + +// value==254 -> mostSignificant=='f', leastSignificant=='e' +mostSignificant, leastSignificant := hexadeca.EncodeByteUsingLowerCaseSymbols(value) + +// ... + +// value==254 -> mostSignificant=='F', leastSignificant=='E' +mostSignificant, leastSignificant := hexadeca.EncodeByteUsingUpperCaseSymbols(value) +``` + ## Import To import package **hexadeca** use `import` code like the follownig: