Skip to content

Commit

Permalink
feat(internal/gensnippets): initial commit (#3922)
Browse files Browse the repository at this point in the history
This tool renders all examples in the current directory to standalone
files.

I confirmed this successfully processes every example in this repo. Once
I added a go.mod/go.sum in the generated directory, all of the examples
passed go vet.

A future change will integrate this tool into our automatic generation
pipelines and add region tags.
  • Loading branch information
tbpg authored Apr 13, 2021
1 parent 280abdb commit 3fabef0
Show file tree
Hide file tree
Showing 3 changed files with 485 additions and 0 deletions.
12 changes: 12 additions & 0 deletions internal/gensnippets/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module cloud.google.com/go/internal/gensnippets

go 1.16

replace cloud.google.com/go/internal/godocfx => ../godocfx

replace cloud.google.com/go => ../..

require (
cloud.google.com/go v0.81.0
cloud.google.com/go/internal/godocfx v0.0.0-00010101000000-000000000000
)
Loading

0 comments on commit 3fabef0

Please sign in to comment.