-
Notifications
You must be signed in to change notification settings - Fork 36
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
feat: add domains table #2225
base: main
Are you sure you want to change the base?
feat: add domains table #2225
Conversation
This adds a simple domains table as the first step to linking delta with tilde
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good but haven't fully reviewed the code
row.Name, | ||
row.Description, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick: probably never a problem in practice, but in theory:
d1 := DomainList{ Domain{ Name: "with space "}}
var d2 DomainList
d2.decode(d1.encode())
// d1[0].Name != d2[0].Name
for _, v := range s.domains { | ||
if name != v.Name { | ||
continue | ||
} | ||
return v, true | ||
} | ||
return Domain{}, false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion: have you considered slices
package, might be more concise...(7 LOC later)...nevermind 😑
This adds a simple domains table as the first step to linking delta with tilde