Skip to content
Permalink
Browse files
feat(internal/gensnippets): initial commit (#3922)
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 committed Apr 13, 2021
1 parent 280abdb commit 3fabef032388713f732ab4dbfc51624cdca0f481
Showing with 485 additions and 0 deletions.
  1. +12 −0 internal/gensnippets/go.mod
  2. +317 −0 internal/gensnippets/go.sum
  3. +156 −0 internal/gensnippets/main.go
@@ -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.