Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

genai: rename source snippets file to docs-snippets_test.go #171

Merged
merged 2 commits into from
Jul 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion genai/example_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// This file was generated from internal/snippets/example_test.go. DO NOT EDIT.
// This file was generated from internal/samples/docs-snippets_test.go. DO NOT EDIT.

// Copyright 2023 Google LLC
//
Expand Down
4 changes: 2 additions & 2 deletions genai/internal/cmd/gen-examples/gen-examples.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

// This code generator takes examples from the internal/snippets directory
// This code generator takes examples from the internal/samples directory
// and copies them to "official" examples in genai/example_test.go, while
// removing snippet comments (between [START...] and [END...]) that are used
// for website documentation purposes.
Expand Down Expand Up @@ -68,7 +68,7 @@ func main() {
}

const preamble = `
// This file was generated from internal/snippets/example_test.go. DO NOT EDIT.
// This file was generated from internal/samples/docs-snippets_test.go. DO NOT EDIT.
`

func printCommentGroup(cg *ast.CommentGroup) {
Expand Down
Loading