refactor: project structure

This commit is contained in:
2026-05-21 21:13:14 +08:00
parent e60a1ef082
commit f2936ac6ad
8 changed files with 298 additions and 247 deletions

36
.goreleaser.yml Normal file
View File

@@ -0,0 +1,36 @@
version: 2
builds:
- binary: tcping
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm64
- "386"
ignore:
- goos: darwin
goarch: "386"
ldflags:
- -w -s -buildid=
archives:
- format: tar.gz
name_template: "tcping-{{ .Os }}-{{ .Arch }}"
format_overrides:
- goos: windows
format: zip
checksum:
name_template: checksums.txt
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"