Skip to content

Commit

Permalink
use stdlib maps and slices (#170)
Browse files Browse the repository at this point in the history
* use stdlib maps and slices

* update ci versions

* fix sudo go version issue
  • Loading branch information
brycekahle authored Feb 12, 2024
1 parent 2f53b5a commit fec7d3d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ jobs:
go: [ "1.21", "1.22" ]
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: install dependencies
Expand All @@ -32,8 +32,8 @@ jobs:
- name: staticcheck
uses: dominikh/[email protected]
with:
version: "2023.1.5"
version: "2023.1.6"
install-go: false
cache-key: ${{ matrix.go }}

- run: "sudo go test ./..."
- run: "go test -exec sudo ./..."
3 changes: 2 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ require (
github.com/cilium/ebpf v0.12.3
github.com/vishvananda/netlink v1.2.1-beta.2.0.20230807190133-6afddb37c1f0
github.com/vishvananda/netns v0.0.4
golang.org/x/exp v0.0.0-20230817173708-d852ddb80c63
golang.org/x/sys v0.17.0
)

require golang.org/x/exp v0.0.0-20230817173708-d852ddb80c63 // indirect
4 changes: 2 additions & 2 deletions manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ import (
"errors"
"fmt"
"io"
"maps"
"os"
"slices"
"sync"
"time"

"github.com/cilium/ebpf"
"golang.org/x/exp/maps"
"golang.org/x/exp/slices"
"golang.org/x/sys/unix"
)

Expand Down

0 comments on commit fec7d3d

Please sign in to comment.