Skip to content

Commit 57daf37

Browse files
authored
Merge pull request #13 from mutablelogic/v1
Updated to go version 1.21
2 parents 9460f7e + 5a18210 commit 57daf37

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+100
-83
lines changed

.github/workflows/merge.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,19 @@ jobs:
1919
- name: Checkout repository
2020
uses: actions/checkout@v4
2121
- name: Initialize CodeQL
22-
uses: github/codeql-action/init@v2
22+
uses: github/codeql-action/init@v3
2323
with:
2424
languages: ${{ matrix.language }}
2525
- name: Autobuild
26-
uses: github/codeql-action/autobuild@v2
26+
uses: github/codeql-action/autobuild@v3
2727
- name: Perform CodeQL Analysis
28-
uses: github/codeql-action/analyze@v2
28+
uses: github/codeql-action/analyze@v3
2929
test:
3030
name: Test
3131
runs-on: ubuntu-latest
3232
strategy:
3333
matrix:
34-
go-version: [ '1.19', '1.20', '1.21', '1.22' ]
34+
go-version: [ '1.21', '1.22' ]
3535
steps:
3636
- name: Checkout repository
3737
uses: actions/checkout@v4

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ cmd: $(CMD_DIR)
2121

2222
test:
2323
@${GO} mod tidy
24-
@${GO} test -v ./pkg/...
24+
@${GO} test ./pkg/...
2525

2626
$(CMD_DIR): dependencies mkdir
2727
@echo Build cmd $(notdir $@)

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ There are also some example clients which use this library:
2222
* [Ollama API client](https://github.com/mutablelogic/go-client/tree/main/pkg/ollama)
2323
* [OpenAI API client](https://github.com/mutablelogic/go-client/tree/main/pkg/openai)
2424

25-
Aiming to have compatibility with go version 1.19 and above.
25+
Aiming to have compatibility with go version 1.21 and above.
2626

2727
## Basic Usage
2828

@@ -33,7 +33,7 @@ to a JSON endpoint:
3333
package main
3434

3535
import (
36-
client "github.com/mutablelogic/go-client/pkg/client"
36+
client "github.com/mutablelogic/go-client"
3737
)
3838

3939
func main() {
@@ -85,7 +85,7 @@ For example,
8585
package main
8686

8787
import (
88-
client "github.com/mutablelogic/go-client/pkg/client"
88+
client "github.com/mutablelogic/go-client"
8989
)
9090

9191
func main() {
@@ -160,7 +160,7 @@ The authentication token can be set as follows:
160160
package main
161161

162162
import (
163-
client "github.com/mutablelogic/go-client/pkg/client"
163+
client "github.com/mutablelogic/go-client"
164164
)
165165

166166
func main() {
File renamed without changes.

pkg/client/client_test.go renamed to client_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package client_test
33
import (
44
"testing"
55

6-
"github.com/mutablelogic/go-client/pkg/client"
6+
"github.com/mutablelogic/go-client"
77
"github.com/stretchr/testify/assert"
88
)
99

File renamed without changes.

cmd/cli/elevenlabs.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import (
66
"regexp"
77
"strings"
88

9-
// Package imports
10-
"github.com/mutablelogic/go-client/pkg/client"
9+
// Packages
10+
"github.com/mutablelogic/go-client"
1111
"github.com/mutablelogic/go-client/pkg/elevenlabs"
1212
)
1313

cmd/cli/homeassistant.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package main
22

33
import (
44
// Packages
5-
"github.com/mutablelogic/go-client/pkg/client"
5+
"github.com/mutablelogic/go-client"
66
"github.com/mutablelogic/go-client/pkg/homeassistant"
77
)
88

cmd/cli/ipify.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package main
22

33
import (
44
// Packages
5-
"github.com/mutablelogic/go-client/pkg/client"
5+
"github.com/mutablelogic/go-client"
66
"github.com/mutablelogic/go-client/pkg/ipify"
77
)
88

cmd/cli/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"path"
88

99
// Packages
10-
"github.com/mutablelogic/go-client/pkg/client"
10+
"github.com/mutablelogic/go-client"
1111
"github.com/pkg/errors"
1212
)
1313

0 commit comments

Comments
 (0)