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

go: support TreeMap #14

Closed
wenchy opened this issue Apr 3, 2023 · 0 comments · Fixed by #23
Closed

go: support TreeMap #14

wenchy opened this issue Apr 3, 2023 · 0 comments · Fixed by #23

Comments

@wenchy
Copy link
Member

wenchy commented Apr 3, 2023

References

Implement treemap pkg in pathpkg/treemap

Define a new generic type Pair

To encapsule orderedmap and struct as a pair (as up-level orderedmap's value).

type Pair[T any, U any] struct {
    First T
    Second U
}

Generated APIs for ActivityConf

  • GetOrderedMap()
  • GetOrderedMap1(activityId uint64) (XXX, error)
  • GetOrderedMap2(activityId uint64, chapterId uint32) (XXX, error)
  • GetOrderedMap3(activityId uint64, chapterId uint32, sectionId uint32) (XXX, error)
@wenchy wenchy changed the title go: support OrderedMap go: support TreeMap Apr 19, 2023
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 a pull request may close this issue.

1 participant