 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
      
          Rendered for js/wasm
        
      Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AsObject ¶
AsObject converts a JS value to a go struct JS value must be an object Given Go struct must have "js" tags to specify fields mapping
func AsSlice ¶
AsSlice converts a JS value to a slice of T value must be an array of a type handled by goValue
func FromObject ¶
FromObject converts a Go struct to a JS Object Given Go struct must have "js" tags to specify fields mapping
Types ¶
type JsFunc ¶
JsFunc represent a function that can be converted to a js.Func using js.FuncOf
func AsPromise ¶
AsPromise convert a classic Go function to a function taking js arguments. arguments and return types must be types handled by this package function must return 2 variables, second one must be an error
func AsyncJsFunc ¶
func AsyncJsFunc(innerFunc JsFuncWithError) JsFunc
 Click to show internal directories. 
   Click to hide internal directories.