Skip to content

Commit

Permalink
support codecs from js client (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
malumar committed Oct 6, 2023
1 parent 30053c2 commit 3a4b1f0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions convert_js.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
//go:build js
// +build js

// Copyright (c) Roman Atachiants and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for details.

package binary

func ToBytes(v string) (b []byte) {
return []byte(v)
}

func binaryToString(buf *[]byte) string {
return string(*buf)
}
Expand Down

0 comments on commit 3a4b1f0

Please sign in to comment.