-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1,302 changed files
with
249,225 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Auto-detect text files, ensure they use LF. | ||
* text=auto eol=lf | ||
|
||
# These files are always considered text and should use LF. | ||
# See core.whitespace @ https://git-scm.com/docs/git-config for whitespace flags. | ||
*.json text eol=lf whitespace=blank-at-eol,blank-at-eof,space-before-tab,tab-in-indent,tabwidth=4 | ||
*.test text eol=lf whitespace=blank-at-eol,blank-at-eof,space-before-tab,tab-in-indent,tabwidth=4 | ||
*.yml text eol=lf whitespace=blank-at-eol,blank-at-eof,space-before-tab,tab-in-indent,tabwidth=2 | ||
|
||
# Exclude non-essential files from dist | ||
/.github export-ignore | ||
/docs export-ignore | ||
/tests export-ignore | ||
/.gitattributes export-ignore | ||
/.gitignore export-ignore | ||
/.travis.yml export-ignore | ||
/appveyor.yml export-ignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: Bug 反馈 | ||
description: 提交你的 Bug 反馈给我们 | ||
title: "[Bug]: " | ||
labels: [bug] | ||
assignees: | ||
- deatil | ||
body: | ||
- type: input | ||
id: ver | ||
attributes: | ||
label: 当前版本 | ||
description: 请输入您当前使用的项目版本? | ||
placeholder: v1.0.2023 | ||
validations: | ||
required: true | ||
- type: input | ||
id: golang | ||
attributes: | ||
label: Golang 版本 | ||
description: 请输入您当前使用的 Golang 版本? | ||
placeholder: go 1.20 | ||
validations: | ||
required: true | ||
- type: dropdown | ||
id: reappearance | ||
attributes: | ||
label: 是否依旧存在 | ||
description: 是否可以在 main 分支复现此 bug? | ||
options: | ||
- 可以 | ||
- 不可以 | ||
- 未测试 | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: desc | ||
attributes: | ||
label: bug描述 | ||
description: 请简要描述bug以及复现过程. | ||
placeholder: | | ||
1. 首先... | ||
2. 然后... | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: advise | ||
attributes: | ||
label: 修改建议 | ||
description: 您有好的建议或者修改方案可以提供给我们。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: 建议和改进 | ||
description: 提出你的建议和想法以帮助我们优化更新项目 | ||
title: "[Feature]: " | ||
labels: [feature] | ||
assignees: | ||
- deatil | ||
body: | ||
- type: textarea | ||
id: desc | ||
attributes: | ||
label: 功能描述以及必要性描述 | ||
description: 您觉得此新功能会为项目带来什么作用? | ||
placeholder: | | ||
1. 首先... | ||
2. 然后... | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: advise | ||
attributes: | ||
label: 建议和方案 | ||
description: 您有好的建议或者修改方案可以提供给我们? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: 问题咨询 | ||
description: 你有任何关于项目的问题都可以咨询 | ||
title: "[Question]: " | ||
labels: [question] | ||
assignees: | ||
- deatil | ||
body: | ||
- type: textarea | ||
id: place | ||
attributes: | ||
label: 疑惑的地方 | ||
description: 您对项目存在疑惑的地方? | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: result | ||
attributes: | ||
label: 期望的结果 | ||
description: 您想要对疑惑的地方得到怎样的结果? | ||
validations: | ||
required: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Tests | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
permissions: | ||
contents: write | ||
packages: write | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set timezone | ||
uses: szenius/set-timezone@v1.0 | ||
with: | ||
timezoneLinux: "Asia/Shanghai" | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: 1.21 | ||
|
||
- name: Go mod tidy | ||
run: go mod tidy | ||
|
||
- name: Unit tests | ||
run: go test -short -covermode=atomic -coverprofile=cover.out ./... | ||
|
||
- name: Test Generic | ||
run: go test -short -tags=purego -covermode=atomic ./... | ||
|
||
- name: Upload coverage reports to Codecov | ||
uses: codecov/codecov-action@v3 | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
with: | ||
files: cover.out |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
# Golang # | ||
###################### | ||
# `go test -c` 生成的二进制文件 | ||
*.test | ||
# go coverage 工具 | ||
*.out | ||
*.prof | ||
*.cgo1.go | ||
*.cgo2.c | ||
_cgo_defun.c | ||
_cgo_gotypes.go | ||
_cgo_export.* | ||
|
||
# 编译文件 # | ||
################### | ||
*.com | ||
*.class | ||
*.dll | ||
*.exe | ||
*.o | ||
*.so | ||
|
||
# 压缩包 # | ||
############ | ||
# *.7z | ||
*.dmg | ||
# *.gz | ||
*.iso | ||
# *.jar | ||
# *.rar | ||
# *.tar | ||
# *.zip | ||
|
||
# 日志文件和数据库 # | ||
###################### | ||
*.log | ||
*.sqlite | ||
*.db | ||
|
||
# 系统生成文件 # | ||
###################### | ||
.DS_Store | ||
.DS_Store? | ||
.AppleDouble | ||
.LSOverride | ||
._* | ||
.Spotlight-V100 | ||
.Trashes | ||
ehthumbs.db | ||
Thumbs.db | ||
.TemporaryItems | ||
.fseventsd | ||
.VolumeIcon.icns | ||
.com.apple.timemachine.donotpresent | ||
|
||
# IDE 和编辑器 # | ||
###################### | ||
.idea/ | ||
/go_build_* | ||
out/ | ||
.vscode/ | ||
.vscode/settings.json | ||
*.sublime* | ||
__debug_bin | ||
.project | ||
|
||
# 临时文件 # | ||
###################### | ||
go.sum | ||
tmp/ | ||
.tmp/ | ||
|
||
|
Oops, something went wrong.