Skip to content

Commit 1ce5b7a

Browse files
committed
optimize: add ci
1 parent 7d0cc7d commit 1ce5b7a

File tree

9 files changed

+136
-7
lines changed

9 files changed

+136
-7
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
12+
A clear and concise description of what the bug is.
13+
14+
**To Reproduce**
15+
16+
Steps to reproduce the behavior:
17+
1. Go to '...'
18+
2. Click on '....'
19+
3. Scroll down to '....'
20+
4. See error
21+
22+
**Expected behavior**
23+
24+
A clear and concise description of what you expected to happen.
25+
26+
**Screenshots**
27+
28+
If applicable, add screenshots to help explain your problem.
29+
30+
**Environment:**
31+
32+
The output of `go env`.
33+
34+
**Additional context**
35+
36+
Add any other context about the problem here.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
12+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
13+
14+
**Describe the solution you'd like**
15+
16+
A clear and concise description of what you want to happen.
17+
18+
**Describe alternatives you've considered**
19+
20+
A clear and concise description of any alternative solutions or features you've considered.
21+
22+
**Additional context**
23+
24+
Add any other context or screenshots about the feature request here.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
#### What type of PR is this?
2+
<!--
3+
Add one of the following kinds:
4+
5+
build: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)
6+
ci: Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)
7+
docs: Documentation only changes
8+
feat: A new feature
9+
optimize: A new optimization
10+
fix: A bug fix
11+
perf: A code change that improves performance
12+
refactor: A code change that neither fixes a bug nor adds a feature
13+
style: Changes that do not affect the meaning of the code (white space, formatting, missing semi-colons, etc)
14+
test: Adding missing tests or correcting existing tests
15+
chore: Changes to the build process or auxiliary tools and libraries such as documentation generation
16+
-->
17+
18+
#### Check the PR title.
19+
<!--
20+
The description of the title will be attached in Release Notes,
21+
so please describe it from user-oriented, what this PR does / why we need it.
22+
Please check your PR title with the below requirements:
23+
-->
24+
- [ ] This PR title match the format: \<type\>(optional scope): \<description\>
25+
- [ ] The description of this PR title is user-oriented and clear enough for others to understand.
26+
27+
28+
#### (Optional) More detail description for this PR.
29+
<!--
30+
Provide more detailed info for review. If it is a perf type PR, perf data is suggested to give.
31+
-->
32+
33+
#### Which issue(s) this PR fixes:
34+
<!--
35+
Automatically closes linked issue when PR is merged.
36+
Eg: `Fixes #<issue number>`, or `Fixes (paste link of issue)`.
37+
-->

.github/dependabot.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "gomod"
4+
directory: "/"
5+
labels:
6+
- "dependencies"
7+
schedule:
8+
interval: "daily"

.github/workflows/tests.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Tests
2+
3+
on: [ push, pull_request ]
4+
5+
jobs:
6+
lint-and-ut:
7+
runs-on: [ ubuntu-18.04 ]
8+
steps:
9+
- uses: actions/checkout@v3
10+
11+
- name: Set up Go
12+
uses: actions/setup-go@v3
13+
with:
14+
go-version: 1.18
15+
16+
- name: Lint
17+
run: |
18+
go vet -stdmethods=false $(go list ./...)
19+
go install mvdan.cc/gofumpt@v0.2.0
20+
test -z "$(gofumpt -l -extra .)"

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
# LgoPool
1+
# gool
22

33
Lightweight goroutine pool / 轻量级Golang协程池
44

55
## Installation
66

77
To install this package, you need to install Go and set your Go workspace first.
88

9-
1. You first need [Go](https://golang.org/) installed, then you can use the below Go command to install Lgopool.
9+
1. You first need [Go](https://golang.org/) installed, then you can use the below Go command to install gool.
1010

1111
```sh
12-
go get -u github.com/LgoLgo/LgoPool
12+
go get -u github.com/LgoLgo/gool
1313
```
1414

1515
2. Import it in your code:
1616

1717
```go
18-
import "github.com/LgoLgo/LgoPool"
18+
import "github.com/LgoLgo/gool"
1919
```
2020

2121
## Quick start
@@ -32,7 +32,7 @@ import (
3232
"fmt"
3333
"time"
3434

35-
"github.com/LgoLgo/LgoPool/pool"
35+
"github.com/LgoLgo/gool/pool"
3636
)
3737

3838
func main() {

_typos.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Typo check: https://github.com/crate-ci/typos
2+
3+
[files]
4+
extend-exclude = ["go.sum"]

example/example.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"fmt"
55
"time"
66

7-
"github.com/LgoLgo/LgoPool/pool"
7+
"github.com/LgoLgo/gool/pool"
88
)
99

1010
func main() {

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
module github.com/LgoLgo/LgoPool
1+
module github.com/LgoLgo/gool
22

33
go 1.18

0 commit comments

Comments
 (0)