From 87c0185d277471b4abb276a3891e4596e637cf63 Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Fri, 1 Nov 2019 20:27:43 +0100 Subject: [PATCH] Add Go modules example (#18) * Add Go modules example * Fix TOC --- examples.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/examples.md b/examples.md index 72779ee..bd9bc51 100644 --- a/examples.md +++ b/examples.md @@ -8,6 +8,7 @@ - [Swift, Objective-C - Carthage](#swift-objective-c---carthage) - [Swift, Objective-C - CocoaPods](#swift-objective-c---cocoapods) - [Ruby - Gem](#ruby---gem) +- [Go - Modules](#go---modules) ## Node - npm @@ -95,4 +96,15 @@ uses: actions/cache@preview key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }} restore-keys: | ${{ runner.os }}-gem- -``` \ No newline at end of file +``` + +## Go - Modules + +```yaml +- uses: actions/cache@preview + with: + path: ~/go/pkg/mod + key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} + restore-keys: | + ${{ runner.os }}-go- +```