Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 8 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -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()`;
Expand Down
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
```


Expand Down
6 changes: 3 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
@@ -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
)

Expand Down
12 changes: 4 additions & 8 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions strings/find.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

/*
Expand Down
4 changes: 2 additions & 2 deletions version.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

/*
* Created: 1st March 2019
* Updated: 20th August 2025
* Updated: 27th August 2025
*/

package angols
Expand All @@ -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)
)

Expand Down
6 changes: 3 additions & 3 deletions version_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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())
}