From 8ceff789c61f0bbd166a4d7c33146aa3c8649898 Mon Sep 17 00:00:00 2001 From: Jono Wenger <jono@elixxir.io> Date: Tue, 20 Sep 2022 16:27:15 -0700 Subject: [PATCH] Docs test --- wasm/channels.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/wasm/channels.go b/wasm/channels.go index 8818d11a..ba99ede3 100644 --- a/wasm/channels.go +++ b/wasm/channels.go @@ -13,6 +13,7 @@ import ( "gitlab.com/elixxir/client/bindings" "gitlab.com/elixxir/xxdk-wasm/indexedDb" "gitlab.com/elixxir/xxdk-wasm/utils" + _ "gitlab.com/xx_network/primitives/id" "syscall/js" ) @@ -63,9 +64,9 @@ func (ch *ChannelsManager) GetID(js.Value, []js.Value) interface{} { // NewChannelsManager constructs a ChannelsManager. // // Parameters: -// - args[0] - ID of E2e object in tracker (int). This can be retrieved using +// - args[0] - ID of [E2e] object in tracker (int). This can be retrieved using // [E2e.GetID]. -// - args[1] - ID of UserDiscovery object in tracker (int). This can be +// - args[1] - ID of [UserDiscovery] object in tracker (int). This can be // retrieved using [UserDiscovery.GetID]. // // Returns: @@ -259,12 +260,12 @@ func (ch *ChannelsManager) JoinChannel(_ js.Value, args []js.Value) interface{} // GetChannels returns the IDs of all channels that have been joined. // // Returns: -// - JSON of an array of marshalled [id.ID] (Uint8Array). +// - JSON of an array of marshalled [gitlab.com/xx_network/primitives/id.ID] (Uint8Array). // - Throws a TypeError if getting the channels fails. // // JSON Example: // { -// U4x/lrFkvxuXu59LtHLon1sUhPJSCcnZND6SugndnVID", +// "U4x/lrFkvxuXu59LtHLon1sUhPJSCcnZND6SugndnVID", // "15tNdkKbYXoMn58NO6VbDMDWFEyIhTWEGsvgcJsHWAgD" // } func (ch *ChannelsManager) GetChannels(js.Value, []js.Value) interface{} { -- GitLab