Skip to content

Commit

Permalink
update zh readme
Browse files Browse the repository at this point in the history
  • Loading branch information
inhere committed Dec 10, 2020
1 parent e9a93bf commit e9c23c2
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 7 deletions.
26 changes: 21 additions & 5 deletions .github/workflows/go.yml
Expand Up @@ -27,9 +27,25 @@ jobs:
go-version: ${{ matrix.go_version }}
# id: go

- name: Get dependencies
run: |
go get -v -t -d ./...
- name: Run unit tests
# run: go test -v -cover ./...
# must add " for profile.cov on windows OS
run: go test -v -coverprofile="profile.cov" ./...

- name: Run tests
run: go test -v -cover ./...
- name: Send coverage
uses: shogo82148/actions-goveralls@v1
if: ${{ matrix.os == 'ubuntu-latest' }}
with:
path-to-profile: profile.cov
flag-name: Go-${{ matrix.go_version }}
parallel: true

# notifies that all test jobs are finished.
# https://github.com/shogo82148/actions-goveralls
finish:
needs: test
runs-on: ubuntu-latest
steps:
- uses: shogo82148/actions-goveralls@v1
with:
parallel-finished: true
5 changes: 3 additions & 2 deletions README.zh-CN.md
Expand Up @@ -150,7 +150,7 @@ color.Reset()
## 基础颜色方法

> 支持在windows `cmd.exe` 使用
> 支持在windows `cmd.exe` `powerShell` 等终端使用
- `color.Bold`
- `color.Black`
Expand All @@ -174,7 +174,7 @@ color.Yellow.Println("yellow message")

## 扩展风格方法

> 支持在windows `cmd.exe` 使用
> 支持在windows `cmd.exe` `powerShell` 等终端使用
- `color.Info`
- `color.Note`
Expand Down Expand Up @@ -401,6 +401,7 @@ s.Printf("style with %s\n", "options")
- `IsConsole(w io.Writer)` Determine whether w is one of stderr, stdout, stdin
- `HexToRgb(hex string) (rgb []int)` Convert hex color string to RGB numbers
- `RgbToHex(rgb []int) string` Convert RGB to hex code
- 更多请查看文档 https://pkg.go.dev/github.com/gookit/color

## Gookit 工具包

Expand Down

0 comments on commit e9c23c2

Please sign in to comment.