sourcecode.social -> github.com

master
Charles Iliya Krempeaux 2024-07-25 04:33:45 -07:00
parent 78ace11287
commit a1b13871ef
42 changed files with 53 additions and 54 deletions

View File

@ -1,4 +1,3 @@
# go-hexadeca # go-hexadeca
Package **hexadeca** implements **hexadecimal** _encoding_ and _decoding_, for the Go programming language. Package **hexadeca** implements **hexadecimal** _encoding_ and _decoding_, for the Go programming language.
@ -31,9 +30,9 @@ Package **hexadeca** has functions for hexadecimal encoding and decoding for the
## Documention ## Documention
Online documentation, which includes examples, can be found at: http://godoc.org/sourcecode.social/reiver/go-hexadeca Online documentation, which includes examples, can be found at: http://godoc.org/github.com/reiver/go-hexadeca
[![GoDoc](https://godoc.org/sourcecode.social/reiver/go-hexadeca?status.svg)](https://godoc.org/sourcecode.social/reiver/go-hexadeca) [![GoDoc](https://godoc.org/github.com/reiver/go-hexadeca?status.svg)](https://godoc.org/github.com/reiver/go-hexadeca)
## Symbols ## Symbols
@ -114,14 +113,14 @@ Samples:
To import package **hexadeca** use `import` code like the following: To import package **hexadeca** use `import` code like the following:
``` ```
import "sourcecode.social/reiver/go-hexadeca" import "github.com/reiver/go-hexadeca"
``` ```
## Installation ## Installation
To install package **hexadeca** do the following: To install package **hexadeca** do the following:
``` ```
GOPROXY=direct go get https://sourcecode.social/reiver/go-hexadeca GOPROXY=direct go get https://github.com/reiver/go-hexadeca
``` ```
## Author ## Author

View File

@ -1,7 +1,7 @@
package hexadecabytes package hexadecabytes
import ( import (
"sourcecode.social/reiver/go-hexadeca/symbols/byte" "github.com/reiver/go-hexadeca/symbols/byte"
) )
// EncodeByte encodes the value of a byte into hexadecimal. // EncodeByte encodes the value of a byte into hexadecimal.

View File

@ -3,7 +3,7 @@ package hexadecabytes_test
import ( import (
"testing" "testing"
"sourcecode.social/reiver/go-hexadeca/bytes" "github.com/reiver/go-hexadeca/bytes"
) )
func TestEncodeByteUsingLowerCaseSymbols(t *testing.T) { func TestEncodeByteUsingLowerCaseSymbols(t *testing.T) {

View File

@ -1,7 +1,7 @@
package hexadecabytes package hexadecabytes
import ( import (
"sourcecode.social/reiver/go-hexadeca/symbols/byte" "github.com/reiver/go-hexadeca/symbols/byte"
) )
func EncodeInt16(value int16, symbolFunc func(byte)byte) (r3 byte, r2 byte, r1 byte, r0 byte) { func EncodeInt16(value int16, symbolFunc func(byte)byte) (r3 byte, r2 byte, r1 byte, r0 byte) {

View File

@ -1,7 +1,7 @@
package hexadecabytes package hexadecabytes
import ( import (
"sourcecode.social/reiver/go-hexadeca/symbols/byte" "github.com/reiver/go-hexadeca/symbols/byte"
) )
func EncodeInt32(value int32, symbolFunc func(byte)byte) (r7 byte, r6 byte, r5 byte, r4 byte, r3 byte, r2 byte, r1 byte, r0 byte) { func EncodeInt32(value int32, symbolFunc func(byte)byte) (r7 byte, r6 byte, r5 byte, r4 byte, r3 byte, r2 byte, r1 byte, r0 byte) {

View File

@ -1,7 +1,7 @@
package hexadecabytes package hexadecabytes
import ( import (
"sourcecode.social/reiver/go-hexadeca/symbols/byte" "github.com/reiver/go-hexadeca/symbols/byte"
) )
func EncodeInt64(value int64, symbolFunc func(byte)byte) (r15 byte, r14 byte, r13 byte, r12 byte, r11 byte, r10 byte, r9 byte, r8 byte, r7 byte, r6 byte, r5 byte, r4 byte, r3 byte, r2 byte, r1 byte, r0 byte) { func EncodeInt64(value int64, symbolFunc func(byte)byte) (r15 byte, r14 byte, r13 byte, r12 byte, r11 byte, r10 byte, r9 byte, r8 byte, r7 byte, r6 byte, r5 byte, r4 byte, r3 byte, r2 byte, r1 byte, r0 byte) {

View File

@ -3,7 +3,7 @@ package hexadecabytes_test
import ( import (
"testing" "testing"
"sourcecode.social/reiver/go-hexadeca/bytes" "github.com/reiver/go-hexadeca/bytes"
) )
func TestEncodeInt64UsingLowerCaseSymbols(t *testing.T) { func TestEncodeInt64UsingLowerCaseSymbols(t *testing.T) {

View File

@ -1,7 +1,7 @@
package hexadecabytes package hexadecabytes
import ( import (
"sourcecode.social/reiver/go-hexadeca/symbols/byte" "github.com/reiver/go-hexadeca/symbols/byte"
) )
// EncodeInt8 encodes the value of a int8 into hexadecimal. // EncodeInt8 encodes the value of a int8 into hexadecimal.

View File

@ -3,7 +3,7 @@ package hexadecabytes_test
import ( import (
"testing" "testing"
"sourcecode.social/reiver/go-hexadeca/bytes" "github.com/reiver/go-hexadeca/bytes"
) )
func TestEncodeInt8UsingLowerCaseSymbols(t *testing.T) { func TestEncodeInt8UsingLowerCaseSymbols(t *testing.T) {

View File

@ -1,7 +1,7 @@
package hexadecabytes package hexadecabytes
import ( import (
"sourcecode.social/reiver/go-hexadeca/symbols/byte" "github.com/reiver/go-hexadeca/symbols/byte"
) )
func EncodeUint16(value uint16, symbolFunc func(byte)byte) (r3 byte, r2 byte, r1 byte, r0 byte) { func EncodeUint16(value uint16, symbolFunc func(byte)byte) (r3 byte, r2 byte, r1 byte, r0 byte) {

View File

@ -1,7 +1,7 @@
package hexadecabytes package hexadecabytes
import ( import (
"sourcecode.social/reiver/go-hexadeca/symbols/byte" "github.com/reiver/go-hexadeca/symbols/byte"
) )
func EncodeUint32(value uint32, symbolFunc func(byte)byte) (r7 byte, r6 byte, r5 byte, r4 byte, r3 byte, r2 byte, r1 byte, r0 byte) { func EncodeUint32(value uint32, symbolFunc func(byte)byte) (r7 byte, r6 byte, r5 byte, r4 byte, r3 byte, r2 byte, r1 byte, r0 byte) {

View File

@ -1,7 +1,7 @@
package hexadecabytes package hexadecabytes
import ( import (
"sourcecode.social/reiver/go-hexadeca/symbols/byte" "github.com/reiver/go-hexadeca/symbols/byte"
) )
func EncodeUint64(value uint64, symbolFunc func(byte)byte) (r15 byte, r14 byte, r13 byte, r12 byte, r11 byte, r10 byte, r9 byte, r8 byte, r7 byte, r6 byte, r5 byte, r4 byte, r3 byte, r2 byte, r1 byte, r0 byte) { func EncodeUint64(value uint64, symbolFunc func(byte)byte) (r15 byte, r14 byte, r13 byte, r12 byte, r11 byte, r10 byte, r9 byte, r8 byte, r7 byte, r6 byte, r5 byte, r4 byte, r3 byte, r2 byte, r1 byte, r0 byte) {

View File

@ -3,7 +3,7 @@ package hexadecabytes_test
import ( import (
"testing" "testing"
"sourcecode.social/reiver/go-hexadeca/bytes" "github.com/reiver/go-hexadeca/bytes"
) )
func TestEncodeUint64UsingLowerCaseSymbols(t *testing.T) { func TestEncodeUint64UsingLowerCaseSymbols(t *testing.T) {

View File

@ -3,7 +3,7 @@ package hexadeca_test
import ( import (
"testing" "testing"
"sourcecode.social/reiver/go-hexadeca" "github.com/reiver/go-hexadeca"
) )
func TestDecodeByte(t *testing.T) { func TestDecodeByte(t *testing.T) {

View File

@ -1,8 +1,8 @@
package hexadeca package hexadeca
import ( import (
"sourcecode.social/reiver/go-hexadeca/bytes" "github.com/reiver/go-hexadeca/bytes"
"sourcecode.social/reiver/go-hexadeca/runes" "github.com/reiver/go-hexadeca/runes"
) )
func EncodeByteUsingLowerCaseSymbols(value byte) (mostSignificant byte, leastSignificant byte) { func EncodeByteUsingLowerCaseSymbols(value byte) (mostSignificant byte, leastSignificant byte) {

View File

@ -1,8 +1,8 @@
package hexadeca package hexadeca
import ( import (
"sourcecode.social/reiver/go-hexadeca/bytes" "github.com/reiver/go-hexadeca/bytes"
"sourcecode.social/reiver/go-hexadeca/runes" "github.com/reiver/go-hexadeca/runes"
) )
func EncodeInt16UsingLowerCaseSymbols(value int16) (r3 byte, r2 byte, r1 byte, r0 byte) { func EncodeInt16UsingLowerCaseSymbols(value int16) (r3 byte, r2 byte, r1 byte, r0 byte) {

View File

@ -1,8 +1,8 @@
package hexadeca package hexadeca
import ( import (
"sourcecode.social/reiver/go-hexadeca/bytes" "github.com/reiver/go-hexadeca/bytes"
"sourcecode.social/reiver/go-hexadeca/runes" "github.com/reiver/go-hexadeca/runes"
) )
func EncodeInt32UsingLowerCaseSymbols(value int32) (r7 byte, r6 byte, r5 byte, r4 byte, r3 byte, r2 byte, r1 byte, r0 byte) { func EncodeInt32UsingLowerCaseSymbols(value int32) (r7 byte, r6 byte, r5 byte, r4 byte, r3 byte, r2 byte, r1 byte, r0 byte) {

View File

@ -1,8 +1,8 @@
package hexadeca package hexadeca
import ( import (
"sourcecode.social/reiver/go-hexadeca/bytes" "github.com/reiver/go-hexadeca/bytes"
"sourcecode.social/reiver/go-hexadeca/runes" "github.com/reiver/go-hexadeca/runes"
) )
func EncodeInt64UsingLowerCaseSymbols(value int64) (r15 byte, r14 byte, r13 byte, r12 byte, r11 byte, r10 byte, r9 byte, r8 byte, r7 byte, r6 byte, r5 byte, r4 byte, r3 byte, r2 byte, r1 byte, r0 byte) { func EncodeInt64UsingLowerCaseSymbols(value int64) (r15 byte, r14 byte, r13 byte, r12 byte, r11 byte, r10 byte, r9 byte, r8 byte, r7 byte, r6 byte, r5 byte, r4 byte, r3 byte, r2 byte, r1 byte, r0 byte) {

View File

@ -1,8 +1,8 @@
package hexadeca package hexadeca
import ( import (
"sourcecode.social/reiver/go-hexadeca/bytes" "github.com/reiver/go-hexadeca/bytes"
"sourcecode.social/reiver/go-hexadeca/runes" "github.com/reiver/go-hexadeca/runes"
) )
func EncodeInt8UsingLowerCaseSymbols(value int8) (mostSignificant byte, leastSignificant byte) { func EncodeInt8UsingLowerCaseSymbols(value int8) (mostSignificant byte, leastSignificant byte) {

View File

@ -1,8 +1,8 @@
package hexadeca package hexadeca
import ( import (
"sourcecode.social/reiver/go-hexadeca/bytes" "github.com/reiver/go-hexadeca/bytes"
"sourcecode.social/reiver/go-hexadeca/runes" "github.com/reiver/go-hexadeca/runes"
) )
func EncodeUint16UsingLowerCaseSymbols(value uint16) (r3 byte, r2 byte, r1 byte, r0 byte) { func EncodeUint16UsingLowerCaseSymbols(value uint16) (r3 byte, r2 byte, r1 byte, r0 byte) {

View File

@ -1,8 +1,8 @@
package hexadeca package hexadeca
import ( import (
"sourcecode.social/reiver/go-hexadeca/bytes" "github.com/reiver/go-hexadeca/bytes"
"sourcecode.social/reiver/go-hexadeca/runes" "github.com/reiver/go-hexadeca/runes"
) )
func EncodeUint32UsingLowerCaseSymbols(value uint32) (r7 byte, r6 byte, r5 byte, r4 byte, r3 byte, r2 byte, r1 byte, r0 byte) { func EncodeUint32UsingLowerCaseSymbols(value uint32) (r7 byte, r6 byte, r5 byte, r4 byte, r3 byte, r2 byte, r1 byte, r0 byte) {

View File

@ -1,8 +1,8 @@
package hexadeca package hexadeca
import ( import (
"sourcecode.social/reiver/go-hexadeca/bytes" "github.com/reiver/go-hexadeca/bytes"
"sourcecode.social/reiver/go-hexadeca/runes" "github.com/reiver/go-hexadeca/runes"
) )
func EncodeUint64UsingLowerCaseSymbols(value uint64) (r15 byte, r14 byte, r13 byte, r12 byte, r11 byte, r10 byte, r9 byte, r8 byte, r7 byte, r6 byte, r5 byte, r4 byte, r3 byte, r2 byte, r1 byte, r0 byte) { func EncodeUint64UsingLowerCaseSymbols(value uint64) (r15 byte, r14 byte, r13 byte, r12 byte, r11 byte, r10 byte, r9 byte, r8 byte, r7 byte, r6 byte, r5 byte, r4 byte, r3 byte, r2 byte, r1 byte, r0 byte) {

2
go.mod
View File

@ -1,3 +1,3 @@
module sourcecode.social/reiver/go-hexadeca module github.com/reiver/go-hexadeca
go 1.20 go 1.20

View File

@ -1,7 +1,7 @@
package hexadecarunes package hexadecarunes
import ( import (
"sourcecode.social/reiver/go-hexadeca/symbols/rune" "github.com/reiver/go-hexadeca/symbols/rune"
) )
// EncodeByte encodes the value of a byte into hexadecimal. // EncodeByte encodes the value of a byte into hexadecimal.

View File

@ -3,7 +3,7 @@ package hexadecarunes_test
import ( import (
"testing" "testing"
"sourcecode.social/reiver/go-hexadeca/runes" "github.com/reiver/go-hexadeca/runes"
) )
func TestEncodeByteUsingLowerCaseSymbols(t *testing.T) { func TestEncodeByteUsingLowerCaseSymbols(t *testing.T) {

View File

@ -1,7 +1,7 @@
package hexadecarunes package hexadecarunes
import ( import (
"sourcecode.social/reiver/go-hexadeca/symbols/rune" "github.com/reiver/go-hexadeca/symbols/rune"
) )
func EncodeInt16(value int16, symbolFunc func(byte)rune) (r3 rune, r2 rune, r1 rune, r0 rune) { func EncodeInt16(value int16, symbolFunc func(byte)rune) (r3 rune, r2 rune, r1 rune, r0 rune) {

View File

@ -1,7 +1,7 @@
package hexadecarunes package hexadecarunes
import ( import (
"sourcecode.social/reiver/go-hexadeca/symbols/rune" "github.com/reiver/go-hexadeca/symbols/rune"
) )
func EncodeInt32(value int32, symbolFunc func(byte)rune) (r7 rune, r6 rune, r5 rune, r4 rune, r3 rune, r2 rune, r1 rune, r0 rune) { func EncodeInt32(value int32, symbolFunc func(byte)rune) (r7 rune, r6 rune, r5 rune, r4 rune, r3 rune, r2 rune, r1 rune, r0 rune) {

View File

@ -1,7 +1,7 @@
package hexadecarunes package hexadecarunes
import ( import (
"sourcecode.social/reiver/go-hexadeca/symbols/rune" "github.com/reiver/go-hexadeca/symbols/rune"
) )
func EncodeInt64(value int64, symbolFunc func(byte)rune) (r15 rune, r14 rune, r13 rune, r12 rune, r11 rune, r10 rune, r9 rune, r8 rune, r7 rune, r6 rune, r5 rune, r4 rune, r3 rune, r2 rune, r1 rune, r0 rune) { func EncodeInt64(value int64, symbolFunc func(byte)rune) (r15 rune, r14 rune, r13 rune, r12 rune, r11 rune, r10 rune, r9 rune, r8 rune, r7 rune, r6 rune, r5 rune, r4 rune, r3 rune, r2 rune, r1 rune, r0 rune) {

View File

@ -3,7 +3,7 @@ package hexadecarunes_test
import ( import (
"testing" "testing"
"sourcecode.social/reiver/go-hexadeca/runes" "github.com/reiver/go-hexadeca/runes"
) )
func TestEncodeInt64UsingLowerCaseSymbols(t *testing.T) { func TestEncodeInt64UsingLowerCaseSymbols(t *testing.T) {

View File

@ -1,7 +1,7 @@
package hexadecarunes package hexadecarunes
import ( import (
"sourcecode.social/reiver/go-hexadeca/symbols/rune" "github.com/reiver/go-hexadeca/symbols/rune"
) )
// EncodeInt8 encodes the value of a int8 into hexadecimal. // EncodeInt8 encodes the value of a int8 into hexadecimal.

View File

@ -3,7 +3,7 @@ package hexadecarunes_test
import ( import (
"testing" "testing"
"sourcecode.social/reiver/go-hexadeca/runes" "github.com/reiver/go-hexadeca/runes"
) )
func TestEncodeInt8UsingLowerCaseSymbols(t *testing.T) { func TestEncodeInt8UsingLowerCaseSymbols(t *testing.T) {

View File

@ -1,7 +1,7 @@
package hexadecarunes package hexadecarunes
import ( import (
"sourcecode.social/reiver/go-hexadeca/symbols/rune" "github.com/reiver/go-hexadeca/symbols/rune"
) )
func EncodeUint16(value uint16, symbolFunc func(byte)rune) (r3 rune, r2 rune, r1 rune, r0 rune) { func EncodeUint16(value uint16, symbolFunc func(byte)rune) (r3 rune, r2 rune, r1 rune, r0 rune) {

View File

@ -1,7 +1,7 @@
package hexadecarunes package hexadecarunes
import ( import (
"sourcecode.social/reiver/go-hexadeca/symbols/rune" "github.com/reiver/go-hexadeca/symbols/rune"
) )
func EncodeUint32(value uint32, symbolFunc func(byte)rune) (r7 rune, r6 rune, r5 rune, r4 rune, r3 rune, r2 rune, r1 rune, r0 rune) { func EncodeUint32(value uint32, symbolFunc func(byte)rune) (r7 rune, r6 rune, r5 rune, r4 rune, r3 rune, r2 rune, r1 rune, r0 rune) {

View File

@ -1,7 +1,7 @@
package hexadecarunes package hexadecarunes
import ( import (
"sourcecode.social/reiver/go-hexadeca/symbols/rune" "github.com/reiver/go-hexadeca/symbols/rune"
) )
func EncodeUint64(value uint64, symbolFunc func(byte)rune) (r15 rune, r14 rune, r13 rune, r12 rune, r11 rune, r10 rune, r9 rune, r8 rune, r7 rune, r6 rune, r5 rune, r4 rune, r3 rune, r2 rune, r1 rune, r0 rune) { func EncodeUint64(value uint64, symbolFunc func(byte)rune) (r15 rune, r14 rune, r13 rune, r12 rune, r11 rune, r10 rune, r9 rune, r8 rune, r7 rune, r6 rune, r5 rune, r4 rune, r3 rune, r2 rune, r1 rune, r0 rune) {

View File

@ -3,7 +3,7 @@ package hexadecarunes_test
import ( import (
"testing" "testing"
"sourcecode.social/reiver/go-hexadeca/runes" "github.com/reiver/go-hexadeca/runes"
) )
func TestEncodeUint64UsingLowerCaseSymbols(t *testing.T) { func TestEncodeUint64UsingLowerCaseSymbols(t *testing.T) {

View File

@ -3,7 +3,7 @@ package bytesymbols_test
import ( import (
"testing" "testing"
"sourcecode.social/reiver/go-hexadeca/symbols/byte" "github.com/reiver/go-hexadeca/symbols/byte"
) )
func TestSymbolLowerCase(t *testing.T) { func TestSymbolLowerCase(t *testing.T) {

View File

@ -3,7 +3,7 @@ package bytesymbols_test
import ( import (
"testing" "testing"
"sourcecode.social/reiver/go-hexadeca/symbols/byte" "github.com/reiver/go-hexadeca/symbols/byte"
) )
func TestSymbolUpperCase(t *testing.T) { func TestSymbolUpperCase(t *testing.T) {

View File

@ -1,7 +1,7 @@
package runesymbols package runesymbols
import ( import (
"sourcecode.social/reiver/go-hexadeca/symbols/byte" "github.com/reiver/go-hexadeca/symbols/byte"
) )
// LowerCase is used with hexadeca.EncodeByte() to encode a byte into hexadecimal symbols using lower-case symbols from ASCII / Unicode UTF-8. // LowerCase is used with hexadeca.EncodeByte() to encode a byte into hexadecimal symbols using lower-case symbols from ASCII / Unicode UTF-8.

View File

@ -3,7 +3,7 @@ package runesymbols_test
import ( import (
"testing" "testing"
"sourcecode.social/reiver/go-hexadeca/symbols/rune" "github.com/reiver/go-hexadeca/symbols/rune"
) )
func TestLowerCase(t *testing.T) { func TestLowerCase(t *testing.T) {

View File

@ -3,7 +3,7 @@ package runesymbols_test
import ( import (
"testing" "testing"
"sourcecode.social/reiver/go-hexadeca/symbols/rune" "github.com/reiver/go-hexadeca/symbols/rune"
) )
func TestPersian(t *testing.T) { func TestPersian(t *testing.T) {

View File

@ -1,7 +1,7 @@
package runesymbols package runesymbols
import ( import (
"sourcecode.social/reiver/go-hexadeca/symbols/byte" "github.com/reiver/go-hexadeca/symbols/byte"
) )
// UpperCase is used with hexadeca.EncodeByte() to encode a byte into hexadecimal symbols using upper-case symbols from ASCII / Unicode UTF-8. // UpperCase is used with hexadeca.EncodeByte() to encode a byte into hexadecimal symbols using upper-case symbols from ASCII / Unicode UTF-8.

View File

@ -3,7 +3,7 @@ package runesymbols_test
import ( import (
"testing" "testing"
"sourcecode.social/reiver/go-hexadeca/symbols/rune" "github.com/reiver/go-hexadeca/symbols/rune"
) )
func TestUpperCase(t *testing.T) { func TestUpperCase(t *testing.T) {