github.com/bananabytelabs/wazero@v0.0.0-20240105073314-54b22a776da8/internal/gojs/custom/date.go (about)

     1  package custom
     2  
     3  const (
     4  	NameDate                  = "Date"
     5  	NameDateGetTimezoneOffset = "getTimezoneOffset"
     6  )
     7  
     8  // DateNameSection are the functions defined in the object named NameDate.
     9  // Results here are those set to the current event object, but effectively are
    10  // results of the host function.
    11  var DateNameSection = map[string]*Names{
    12  	NameDateGetTimezoneOffset: {
    13  		Name:        NameDateGetTimezoneOffset,
    14  		ParamNames:  []string{},
    15  		ResultNames: []string{"tz"},
    16  	},
    17  }