Skip to content

Conversation

@m-vinc
Copy link

@m-vinc m-vinc commented Jul 23, 2024

Hello,
i'm currently implementing my first "group" call I need,

First, I copied the rpc function and create rpcContext which is an exact copy but instead taking a context and use it while creating the http.Request struct.

For the group_add_member call itself It's very simple but I want to know your opinion about if you prefer this kind of generic function or if we create a private function like groupAddMember and create different functios abstracting the memberType like GroupAddUser GroupAddGroup and so on.

Oh and I also change every call to ioutil to the os package since ioutil is deprecated now !

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