Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

refactor(sdk): Expose the models package #21

Merged
merged 1 commit into from
Jan 14, 2023
Merged

refactor(sdk): Expose the models package #21

merged 1 commit into from
Jan 14, 2023

Conversation

ditsuke
Copy link
Member

@ditsuke ditsuke commented Jan 14, 2023

What

Exposes models package (move from the internal sub-package to root amizone).

Why

  • The re-export pattern doesn't work with Go (types can't retain associated
    functions)
  • Less redundant code
  • Less complexity
  • Future models and tests will be simpler to add.

@ditsuke ditsuke force-pushed the refactor/models branch 2 times, most recently from be52057 to 54d8e80 Compare January 14, 2023 09:12
Since Go's re-export pattern is broken (re-exported types
can't retain their associated function's), this commit:
- Removes the re-export layer
- Moves the models package from the `internal` package
  to the base amizone package.

Implications are easier handling of new models, less
duplicated code and logic etc.
@sonarcloud
Copy link

sonarcloud bot commented Jan 14, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@ditsuke ditsuke merged commit 775750b into main Jan 14, 2023
@ditsuke ditsuke deleted the refactor/models branch January 14, 2023 09:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant