Skip to content

Conversation

@Sukuna0007Abhi
Copy link
Contributor

  • Created new common package to house shared utilities
  • Analyzed code duplication across comid and corim packages
  • Extracted TaggedURI type to common package
  • Updated comid/entity.go to use common.TaggedURI via type alias
  • Maintained backward compatibility with existing code
  • Added comprehensive documentation in common/README.md
  • All tests pass successfully

Fixes #11

- Created new common package to house shared utilities
- Analyzed code duplication across comid and corim packages
- Extracted TaggedURI type to common package
- Updated comid/entity.go to use common.TaggedURI via type alias
- Maintained backward compatibility with existing code
- Added comprehensive documentation in common/README.md
- All tests pass successfully

Fixes veraison#11

Signed-off-by: Sukuna0007Abhi <[email protected]>
return o == ""
}
// TaggedURI is a type alias for common.TaggedURI for backward compatibility.
type TaggedURI = common.TaggedURI
Copy link
Contributor

Choose a reason for hiding this comment

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

Do not do this. Update the endire code base to use common.TaggedURI instead.

@@ -0,0 +1,88 @@
# Common Package
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove this file -- this should not be part of the code, as it addresses changes made at a specific point in time.

Instead, some of this should be documented inside the commmit messages (and some things probably don't need to be documente at all as they are self-evident in the commmit diff).

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.

Factor out common code

2 participants