Initialize Go workspace (#483)

This commit is contained in:
Ayyan 2025-01-10 20:33:18 -05:00 • committed by GitHub
parent 034a226999
commit ea0206aed6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
20 changed files with 13 additions and 2 deletions

View file

@ -17,7 +17,7 @@ jobs:
go-version: stable
- name: Build
run: go build -ldflags "-s -w" .
run: make
- uses: actions/upload-artifact@v4
if: ${{ github.event_name == 'push' && github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }}

4
Makefile Normal file
View file

@ -0,0 +1,4 @@
LDFLAGS = "-s -w"
build:
go build -ldflags $(LDFLAGS) ./cli

View file

@ -38,7 +38,7 @@ scoop install discordo
```bash
git clone https://github.com/ayn2op/discordo
cd discordo
go build .
make
```
### Linux clipboard support

View file

View file

3
go.work Normal file
View file

@ -0,0 +1,3 @@
go 1.23.4
use ./cli

4
go.work.sum Normal file
View file

@ -0,0 +1,4 @@
golang.org/x/crypto v0.25.0/go.mod h1:T+wALwcMOSE0kXgUAnPAHqTLW+XHgcELELW8VaDgm/M=
golang.org/x/mod v0.17.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c=
golang.org/x/sync v0.10.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d/go.mod h1:aiJjzUbINMkxbQROHiO6hDPo2LHcIPhhQsa9DLh0yGk=