forked from nknorg/nkn-sdk-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtype.go
22 lines (16 loc) · 756 Bytes
/
type.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package nkn
import (
"github.com/nknorg/nkngomobile"
// blank import to prevent gomobile from being removed by go mod tidy and
// causing gomobile compile error
_ "golang.org/x/mobile/asset"
)
// NewStringArray creates a StringArray from a list of string elements.
var NewStringArray = nkngomobile.NewStringArray
// NewStringArrayFromString creates a StringArray from a single string input.
// The input string will be split to string array by whitespace.
var NewStringArrayFromString = nkngomobile.NewStringArrayFromString
// NewStringMap creates a StringMap from a map.
var NewStringMap = nkngomobile.NewStringMap
// NewStringMapWithSize creates an empty StringMap with a given size.
var NewStringMapWithSize = nkngomobile.NewStringMapWithSize