From 9cc01446401b2d699b14fceeaef4da89fb8f09eb Mon Sep 17 00:00:00 2001 From: Charles Iliya Krempeaux Date: Fri, 27 Oct 2023 21:34:35 -0700 Subject: [PATCH] initial commits --- README.md | 44 ++++++++++++++++++++++++++++++++++++++------ 1 file changed, 38 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 2b4ec91..8c6df42 100644 --- a/README.md +++ b/README.md @@ -227,15 +227,30 @@ r3, r2, r1, r0 := hexadecabytes.EncodeUint16(value, runesymbols.UpperCase) To hexadecimal encode a `uint32` use any of these: ```go -import "sourcecode.social/reiver/go-hexadeca" +import "sourcecode.social/reiver/go-hexadeca/enc/bytes" // ... -r7, r6, r5, r4, r3, r2, r1, r0 := hexadeca.EncodeUint32UsingLowerCaseSymbols(value) +r7, r6, r5, r4, r3, r2, r1, r0 := hexadecabytes.EncodeUint32UsingLowerCaseSymbols(value) // ... -r7, r6, r5, r4, r3, r2, r1, r0 := hexadeca.EncodeUint32UsingUpperCaseSymbols(value) +r7, r6, r5, r4, r3, r2, r1, r0 := hexadecabytes.EncodeUint32UsingUpperCaseSymbols(value) + +``` + +Or: + +```go +import "sourcecode.social/reiver/go-hexadeca/enc/runes" + +// ... + +r7, r6, r5, r4, r3, r2, r1, r0 := hexadecarunes.EncodeUint32UsingLowerCaseSymbols(value) + +// ... + +r7, r6, r5, r4, r3, r2, r1, r0 := hexadecarunes.EncodeUint32UsingUpperCaseSymbols(value) ``` @@ -243,17 +258,34 @@ Or: ```go import ( - "sourcecode.social/reiver/go-hexadeca" + "sourcecode.social/reiver/go-hexadeca/enc/bytes" + "sourcecode.social/reiver/go-hexadeca/symbols/byte" +) + +// ... + +r7, r6, r5, r4, r3, r2, r1, r0 := hexadecabytes.EncodeUint32(value, bytesymbols.LowerCase) + +// ... + +r7, r6, r5, r4, r3, r2, r1, r0 := hexadecabytes.EncodeUint32(value, bytesymbols.UpperCase) +``` + +Or: + +```go +import ( + "sourcecode.social/reiver/go-hexadeca/enc/runes" "sourcecode.social/reiver/go-hexadeca/symbols/rune" ) // ... -r7, r6, r5, r4, r3, r2, r1, r0 := hexadeca.EncodeUint32(value, runesymbols.LowerCase) +r7, r6, r5, r4, r3, r2, r1, r0 := hexadecarunes.EncodeUint32(value, runesymbols.LowerCase) // ... -r7, r6, r5, r4, r3, r2, r1, r0 := hexadeca.EncodeUint32(value, runesymbols.UpperCase) +r7, r6, r5, r4, r3, r2, r1, r0 := hexadecarunes.EncodeUint32(value, runesymbols.UpperCase) ``` ## hexadecimal encode `uint64`