Skip to content
This repository was archived by the owner on Oct 29, 2023. It is now read-only.

Commit e9d8ea9

Browse files
committed
Add build tag to coding examples in docs
1 parent fd7409a commit e9d8ea9

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

docs/coding/minimal-sandbox.go

+3
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
// This is a sample source file that shows how
1717
// to create a MySQL sandbox using dbdeployer code
1818
// from another Go program.
19+
20+
//go:build example
21+
1922
package main
2023

2124
import (

docs/coding/minimal-sandbox2.go

+6-2
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,19 @@
1616
// This is a sample source file that shows how
1717
// to create two MySQL sandboxes using dbdeployer code
1818
// from another Go program.
19+
20+
//go:build example
21+
1922
package main
2023

2124
import (
25+
"os"
26+
"path"
27+
2228
"github.com/datacharmer/dbdeployer/common"
2329
"github.com/datacharmer/dbdeployer/defaults"
2430
"github.com/datacharmer/dbdeployer/globals"
2531
"github.com/datacharmer/dbdeployer/sandbox"
26-
"os"
27-
"path"
2832
)
2933

3034
func main() {

0 commit comments

Comments
 (0)