We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 30053c2 commit 3a4b1f0Copy full SHA for 3a4b1f0
convert_js.go
@@ -1,9 +1,15 @@
1
+//go:build js
2
// +build js
3
+
4
// Copyright (c) Roman Atachiants and contributors. All rights reserved.
5
// Licensed under the MIT license. See LICENSE file in the project root for details.
6
7
package binary
8
9
+func ToBytes(v string) (b []byte) {
10
+ return []byte(v)
11
+}
12
13
func binaryToString(buf *[]byte) string {
14
return string(*buf)
15
}
0 commit comments