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

refactor: split to package/files #18

Merged
merged 12 commits into from
Oct 2, 2023
Merged

refactor: split to package/files #18

merged 12 commits into from
Oct 2, 2023

Conversation

flavono123
Copy link
Owner

  • create model pkg and its components
    • model(parrent); <- refine methods for this
    • labelkey
    • labelvalue
    • nodeinfos
      • just move for else

most of the code is for model, let's split it more in detail
- unexport
- remove infos param. it can be accessed by model
- do not return NodeInfos, assign to model directly
- unexport model.filteredNodeInfos also
- move nodeInfos things to seperated file
- unexport all
  - except for constructor methods
    - NewNodeInfos
    - With...
- pull up append label value to node infos(but for what?)

Signed-off-by: flavono123 <[email protected]>
- since can reference from it self
- function to method of model
- remove arg model's field
- do not return, update itself
- naming convention: update + field name
- describe as comment what it does
@flavono123 flavono123 self-assigned this Oct 2, 2023
@flavono123 flavono123 merged commit 24b89d4 into main Oct 2, 2023
@flavono123 flavono123 deleted the refactor/split-pkgs branch October 2, 2023 03:53
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.

1 participant