diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 76afd33..635b987 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -5,21 +5,29 @@ name: Go on: push: - branches: [ "master" ] + branches: [ "master", "dev", "gha" ] pull_request: - branches: [ "master" ] + branches: [ "master", "dev", "gha" ] jobs: build: runs-on: ubuntu-latest + + strategy: + matrix: + go-version: [ '1.21', '1.22', '1.23', '1.24' ] + steps: - uses: actions/checkout@v4 - - name: Set up Go + - name: Set up Go ${{ matrix.go-version }} uses: actions/setup-go@v4 with: - go-version: '1.24' + go-version: '${{ matrix.go-version }}' + + - name: Display Go version + run: go version - name: Build run: ./build.sh diff --git a/CHANGES.md b/CHANGES.md index fe9b648..defd8a1 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,13 @@ # **ANGoLS** Changes +## 0.7.0 (beta 1) - 27th August 2025 + +* moved private elements into **internal** (so as to hide properly); +* dependencies; +* GitHub Actions enhancements; +* boilerplate; + + ## 0.7.0 (alpha 1) - 20th August 2025 * added `SplitAfterByte()`, `SplitAfterByteN()` ,`SplitAfterRune()` ,`SplitAfterRuneN()`, `SplitAfterAny()`, `SplitAfterAnyN()`, `SplitAfterAnyBytes()`, `SplitAfterAnyBytesN()`, `SplitAfterAnyRunes()`, `SplitAfterAnyRunesN()`; diff --git a/README.md b/README.md index 60dfbc3..1b33ac3 100644 --- a/README.md +++ b/README.md @@ -63,8 +63,16 @@ func SplitAfterAnyRunesN(s string, seps []rune, ix int) []string ## Installation +```bash +go get "github.com/synesissoftware/ANGoLS" +``` + + ```Go -import angols "github.com/synesissoftware/ANGoLS" +import ( + angols_slices "github.com/synesissoftware/ANGoLS/slices" + angols_strings "github.com/synesissoftware/ANGoLS/strings" +) ``` diff --git a/go.mod b/go.mod index af49be1..d16d014 100644 --- a/go.mod +++ b/go.mod @@ -1,10 +1,10 @@ module github.com/synesissoftware/ANGoLS -go 1.23.6 +go 1.24 require ( - github.com/stretchr/testify v1.10.0 - github.com/synesissoftware/STEGoL v0.0.0-20190330001846-560e2a134da1 + github.com/stretchr/testify v1.11.0 + github.com/synesissoftware/STEGoL v0.2.2 github.com/synesissoftware/ver2go v0.1.2 ) diff --git a/go.sum b/go.sum index c20c4ff..612a323 100644 --- a/go.sum +++ b/go.sum @@ -2,14 +2,10 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= -github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= -github.com/synesissoftware/STEGoL v0.0.0-20190330001846-560e2a134da1 h1:gjzrJrWmidiPhErkIA/lm2fBiGXVNF/UWzY53eebRUg= -github.com/synesissoftware/STEGoL v0.0.0-20190330001846-560e2a134da1/go.mod h1:fLXaHg0WlvcjPSX669XZWm+FNyU6ezvGoEWmWSc6I8A= -github.com/synesissoftware/ver2go v0.0.0-20250213011429-1fbcb230c744 h1:/+nOiKrcuGd+oi/81p47CKtA3Q+Ct4YseOIMfKHcpsQ= -github.com/synesissoftware/ver2go v0.0.0-20250213011429-1fbcb230c744/go.mod h1:ZvENMYQ3mjb9e5ymZL5OyQAa56ckYVTvAvycvYg8Vlw= -github.com/synesissoftware/ver2go v0.1.1 h1:1EiJsX64Cw8dUU+UGrWUU0dkvmlVtmWkaFyvaSsiEkc= -github.com/synesissoftware/ver2go v0.1.1/go.mod h1:ZvENMYQ3mjb9e5ymZL5OyQAa56ckYVTvAvycvYg8Vlw= +github.com/stretchr/testify v1.11.0 h1:ib4sjIrwZKxE5u/Japgo/7SJV3PvgjGiRNAvTVGqQl8= +github.com/stretchr/testify v1.11.0/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U= +github.com/synesissoftware/STEGoL v0.2.2 h1:n2xVjgT04J20edm8/VsBmjVLgr+W5sIX87Y+B+V+RNM= +github.com/synesissoftware/STEGoL v0.2.2/go.mod h1:e37JCLk8icbSECIea7vCn+WFKJqxs9cOROMESN9tE5U= github.com/synesissoftware/ver2go v0.1.2 h1:UQu9/nmfdfFyH5lCzycY/yy1pxcnDdwEJnrqhvdvcBI= github.com/synesissoftware/ver2go v0.1.2/go.mod h1:9gXrNoiRkcKU+QGY3chyozsQKAsKb0A8A89eZuV4lX0= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= diff --git a/_std_strings/find.go b/internal/_std_strings/find.go similarity index 100% rename from _std_strings/find.go rename to internal/_std_strings/find.go diff --git a/_std_strings/split.go b/internal/_std_strings/split.go similarity index 100% rename from _std_strings/split.go rename to internal/_std_strings/split.go diff --git a/strings/find.go b/strings/find.go index 5e9ea6b..96e9b2a 100644 --- a/strings/find.go +++ b/strings/find.go @@ -4,13 +4,13 @@ /* * Created: 24th February 2025 - * Updated: 20th August 2025 + * Updated: 27th August 2025 */ package strings import ( - "github.com/synesissoftware/ANGoLS/_std_strings" + "github.com/synesissoftware/ANGoLS/internal/_std_strings" ) /* diff --git a/version.go b/version.go index e5118ca..ebde991 100644 --- a/version.go +++ b/version.go @@ -4,7 +4,7 @@ /* * Created: 1st March 2019 - * Updated: 20th August 2025 + * Updated: 27th August 2025 */ package angols @@ -15,7 +15,7 @@ const ( VersionMajor uint16 = 0 VersionMinor uint16 = 7 VersionPatch uint16 = 0 - VersionAB uint16 = 0x4001 + VersionAB uint16 = 0x8001 Version uint64 = (uint64(VersionMajor) << 48) + (uint64(VersionMinor) << 32) + (uint64(VersionPatch) << 16) + (uint64(VersionAB) << 0) ) diff --git a/version_test.go b/version_test.go index 1317b73..35c7dc5 100644 --- a/version_test.go +++ b/version_test.go @@ -11,7 +11,7 @@ const ( Expected_VersionMajor uint16 = 0 Expected_VersionMinor uint16 = 7 Expected_VersionPatch uint16 = 0 - Expected_VersionAB uint16 = 0x4001 + Expected_VersionAB uint16 = 0x8001 ) func Test_Version_Elements(t *testing.T) { @@ -22,9 +22,9 @@ func Test_Version_Elements(t *testing.T) { } func Test_Version(t *testing.T) { - require.Equal(t, uint64(0x0000_0007_0000_4001), angols.Version) + require.Equal(t, uint64(0x0000_0007_0000_8001), angols.Version) } func Test_Version_String(t *testing.T) { - require.Equal(t, "0.7.0-alpha1", angols.VersionString()) + require.Equal(t, "0.7.0-beta1", angols.VersionString()) }