Skip to content

Commit 87c0185

Browse files
crazy-maxjoshmgross
authored andcommitted
Add Go modules example (actions#18)
* Add Go modules example * Fix TOC
1 parent 25e0c8f commit 87c0185

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

examples.md

+13-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
- [Swift, Objective-C - Carthage](#swift-objective-c---carthage)
99
- [Swift, Objective-C - CocoaPods](#swift-objective-c---cocoapods)
1010
- [Ruby - Gem](#ruby---gem)
11+
- [Go - Modules](#go---modules)
1112

1213
## Node - npm
1314

@@ -95,4 +96,15 @@ uses: actions/cache@preview
9596
key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }}
9697
restore-keys: |
9798
${{ runner.os }}-gem-
98-
```
99+
```
100+
101+
## Go - Modules
102+
103+
```yaml
104+
- uses: actions/cache@preview
105+
with:
106+
path: ~/go/pkg/mod
107+
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
108+
restore-keys: |
109+
${{ runner.os }}-go-
110+
```

0 commit comments

Comments
 (0)