mirror of https://github.com/miguelmota/cointop
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
350 B
Go
19 lines
350 B
Go
// Copyright 2019 The GopherWasm Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
// +build wasm
|
|
// +build go1.12
|
|
|
|
package js
|
|
|
|
import (
|
|
"syscall/js"
|
|
)
|
|
|
|
type Func = js.Func
|
|
|
|
func FuncOf(fn func(this Value, args []Value) interface{}) Func {
|
|
return js.FuncOf(fn)
|
|
}
|