Skip to content

Commit 3260c7f

Browse files
committed
[modify] docs and cache_key to restore.
1 parent 6103784 commit 3260c7f

File tree

4 files changed

+18
-10
lines changed

4 files changed

+18
-10
lines changed

.github/workflows/check_code.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,10 @@ jobs:
6464
id: "gomodcache-dir"
6565
with:
6666
path: "${{ steps.gomodcache-dir-path.outputs.dir }}"
67-
key: "${{ runner.os }}-mythrnr-template-lib-golang-${{ matrix.go }}-${{ hashFiles(format('{0}{1}', github.workspace, '/go.sum')) }}"
68-
restore-keys: "${{ runner.os }}-mythrnr-template-lib-golang-${{ matrix.go }}-"
67+
key: "${{ runner.os }}-${{ matrix.go }}-${{ hashFiles('go.sum') }}"
68+
restore-keys: |
69+
${{ runner.os }}-${{ matrix.go }}-
70+
${{ runner.os }}-
6971
7072
- name: "Run tests"
7173
run: "make test-json > result.json"

README.jp.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
[English](./README.md)
44

5-
- Go言語のライブラリ用のテンプレートリポジトリ.
5+
- Go のライブラリ用のテンプレートリポジトリ.
66

77
## After creating the repository
88

99
- `mythrnr/template-lib-golang` を作成したリポジトリ名に置換する.
10-
- `LICENSE` は自身のライブラリに沿ったものに変更する.
10+
- [`LICENSE`](./LICENSE) は自身のライブラリに沿ったものに変更する.
1111

1212
## Status
1313

@@ -21,7 +21,9 @@
2121

2222
## Requirements
2323

24-
Go 1.13 以上.
24+
- Go 1.13 以上.
25+
26+
- [golangci-lint](https://golangci-lint.run)
2527

2628
## Install
2729

README.md

+6-4
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
[日本語](./README.jp.md)
44

5-
- A template repository for Go language libraries.
5+
- A template repository for Go library.
66

77
## After creating the repository
88

9-
- Replace `mythrnr/template-lib-golang` with the name of the repository you created.
10-
- Change `LICENSE` to match your own library.
9+
- Replace `mythrnr/template-lib-golang` to your module name.
10+
- Change [`LICENSE`](./LICENSE) to match your own library.
1111

1212
## Status
1313

@@ -21,7 +21,9 @@ This package is awesome.
2121

2222
## Requirements
2323

24-
Go 1.13 or above.
24+
- Go 1.13 or above.
25+
26+
- [golangci-lint](https://golangci-lint.run)
2527

2628
## Install
2729

doc.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1-
// Package mylib is awesome package.
1+
/*
2+
Package mylib provides awesome package.
3+
*/
24
package mylib

0 commit comments

Comments
 (0)