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
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
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
@ -114,14 +113,14 @@ Samples:
To import package **hexadeca** use `import` code like the following:
```
import "sourcecode.social/reiver/go-hexadeca"
import "github.com/reiver/go-hexadeca"
```
## Installation
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

View File

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

View File

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

View File

@ -1,7 +1,7 @@
package hexadecabytes
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) {

View File

@ -1,7 +1,7 @@
package hexadecabytes
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) {

View File

@ -1,7 +1,7 @@
package hexadecabytes
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) {

View File

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

View File

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

View File

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

View File

@ -1,7 +1,7 @@
package hexadecabytes
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) {

View File

@ -1,7 +1,7 @@
package hexadecabytes
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) {

View File

@ -1,7 +1,7 @@
package hexadecabytes
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) {

View File

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

View File

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

View File

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

View File

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

View File

@ -1,8 +1,8 @@
package hexadeca
import (
"sourcecode.social/reiver/go-hexadeca/bytes"
"sourcecode.social/reiver/go-hexadeca/runes"
"github.com/reiver/go-hexadeca/bytes"
"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) {

View File

@ -1,8 +1,8 @@
package hexadeca
import (
"sourcecode.social/reiver/go-hexadeca/bytes"
"sourcecode.social/reiver/go-hexadeca/runes"
"github.com/reiver/go-hexadeca/bytes"
"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) {

View File

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

View File

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

View File

@ -1,8 +1,8 @@
package hexadeca
import (
"sourcecode.social/reiver/go-hexadeca/bytes"
"sourcecode.social/reiver/go-hexadeca/runes"
"github.com/reiver/go-hexadeca/bytes"
"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) {

View File

@ -1,8 +1,8 @@
package hexadeca
import (
"sourcecode.social/reiver/go-hexadeca/bytes"
"sourcecode.social/reiver/go-hexadeca/runes"
"github.com/reiver/go-hexadeca/bytes"
"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) {

2
go.mod
View File

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

View File

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

View File

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

View File

@ -1,7 +1,7 @@
package hexadecarunes
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) {

View File

@ -1,7 +1,7 @@
package hexadecarunes
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) {

View File

@ -1,7 +1,7 @@
package hexadecarunes
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) {

View File

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

View File

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

View File

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

View File

@ -1,7 +1,7 @@
package hexadecarunes
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) {

View File

@ -1,7 +1,7 @@
package hexadecarunes
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) {

View File

@ -1,7 +1,7 @@
package hexadecarunes
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) {

View File

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

View File

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

View File

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

View File

@ -1,7 +1,7 @@
package runesymbols
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.

View File

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

View File

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

View File

@ -1,7 +1,7 @@
package runesymbols
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.

View File

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