This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright (C) 2020 Alessandro Segala (ItalyPaleAle) | |
// License: MIT | |
// MyGoFunc returns a Go time.Time to JavaScript | |
func MyGoFunc() js.Func { | |
return js.FuncOf(func(this js.Value, args []js.Value) interface{} { | |
// Get the current time as a Go time.Time object | |
now := time.Now() | |
// Get the Date object constructor from JavaScript | |
dateConstructor := js.Global().Get("Date") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright (C) 2020 Alessandro Segala (ItalyPaleAle) | |
// License: MIT | |
package main | |
// Import the package to access the Wasm environment | |
import ( | |
"syscall/js" | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
DIR=$(dirname "$BASH_SOURCE") | |
echo "Getting into directory ${DIR}/dapr" | |
cd "${DIR}/dapr" | |
#DEBUG=1 make build | |
CGO_ENABLED=0 \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: dapr.io/v1alpha1 | |
kind: Component | |
metadata: | |
name: jwks | |
spec: | |
type: crypto.localstorage | |
version: v1 | |
metadata: | |
- name: path | |
value: keys |
OlderNewer