Skip to content

Move examples to opencodeco/validgen-samples - #117

Merged
leocavalcante merged 1 commit into
mainfrom
42-move-examples
Sep 30, 2026
Merged

leocavalcante merged 1 commit into
mainfrom
42-move-examples

Conversation

@leocavalcante

Copy link
Copy Markdown
Member

Summary

  • Remove _examples from this module.
  • Point the docs at https://github.com/opencodeco/validgen-samples, a separate module that runs the CLI, imports github.com/opencodeco/validgen/types from generated code, and imports the package that owns the structs.

Fixes #42

Test plan

  • CI build passes
  • go test ./... passes in opencodeco/validgen-samples
  • The examples section links to the samples repository

The _examples programs lived in this module, so their imports were not the ones a caller would write.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The local examples are fully removed and all remaining references consistently point to the verified standalone samples repository.

Review effort: Balanced
Findings: None

What changed in this PR

Moves examples to the standalone opencodeco/validgen-samples module and updates local documentation accordingly.

Changes:

  • Removes the _examples directory.
  • Links and documents the external samples repository.
  • Removes stale internal references to local examples.
File Description
README.md Replaces local example instructions with external samples guidance.
docs/​internals.md Removes the obsolete example reference.
testgen/​README.md Removes _examples from test coverage notes.
.github/​copilot-instructions.md Updates repository structure and example location.
_examples/​test01/​test01.go Removes the same-package example.
_examples/​test01/​validator__.go Removes generated test01 validation code.
_examples/​test02/​test02.go Removes the cross-package example command.
_examples/​test02/​structsinpkg/​mystructs.go Removes example structs.
_examples/​test02/​structsinpkg/​validator__.go Removes generated test02 validation code.
_examples/​test03/​test03.go Removes the range-validation example.
_examples/​test03/​validator__.go Removes generated test03 validation code.
_examples/​email_test/​test_email.go Removes the email-validation example.
_examples/​email_test/​validator__.go Removes generated email validation code.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@leocavalcante
leocavalcante merged commit bc83b44 into main Sep 30, 2026
5 checks passed
@leocavalcante
leocavalcante deleted the 42-move-examples branch September 30, 2026 19:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move the examples to a separate repository

2 participants