Skip to content

Commit 0c53fc8

Browse files
authored
Merge pull request #33 from bitlux/dev
Two commits because I forgot to make a PR. :-\ Add util.ResponseCode and use global golangci.yml
2 parents 4f0e90e + e8fd091 commit 0c53fc8

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

.github/workflows/golangci-lint.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ jobs:
2222
uses: golangci/golangci-lint-action@v6
2323
with:
2424
version: latest
25-
25+
args: --verbose --config <(curl https://raw.githubusercontent.com/bitlux/bitlux/refs/heads/main/golangci.yml)

.golangci.yml

-3
This file was deleted.

util/net.go

+6
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,9 @@ func Wget(url string) []byte {
1919
}
2020
return body
2121
}
22+
23+
func ResponseCode(url string) int {
24+
res, err := http.Get(url)
25+
Must(err)
26+
return res.StatusCode
27+
}

0 commit comments

Comments
 (0)