File tree 3 files changed +0
-10
lines changed
3 files changed +0
-10
lines changed Original file line number Diff line number Diff line change 15
15
with :
16
16
fetch-depth : 0 # Changelog γζ£γγεδ½γγγγγγ«εΏ
θ¦
17
17
18
- - name : Install GoReleaser and mockgen
19
- run : |
20
- wget https://github.com/goreleaser/goreleaser/releases/latest/download/goreleaser_amd64 -O /tmp/goreleaser
21
- chmod +x /tmp/goreleaser
22
- sudo mv /tmp/goreleaser /usr/local/bin/goreleaser
23
- go get github.com/golang/mock/mockgen
24
- env :
25
- GO111MODULE : on
26
18
# Go γγ»γγγ’γγ
27
19
- uses : actions/setup-go@v3
28
20
with :
Original file line number Diff line number Diff line change 1
1
.PHONY : test
2
2
3
3
test :
4
- go generate ./...
5
4
go test -v ./internal/service
Original file line number Diff line number Diff line change 8
8
"github.com/sashabaranov/go-openai"
9
9
)
10
10
11
- //go:generate mockgen -source=openai.go -destination=../../mock/openai.go
12
11
type OpenAIGateway interface {
13
12
GetAnswerFromPrompt (prompt string , variability float32 ) (string , error )
14
13
AsyncGetAnswerFromPrompt (prompt string , variability float32 ) <- chan string
You canβt perform that action at this time.
0 commit comments