Created
April 29, 2022 05:02
-
-
Save ivancorrales/47667c5d4c8ed708cfd2bea3fe5160bd to your computer and use it in GitHub Desktop.
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
package main | |
import ( | |
"strings" | |
"syscall/js" | |
) | |
func main() { | |
document := js.Global().Get("document") | |
input := document.Call("getElementById", "description"). | |
Get("innerHTML") | |
outputMessage := strings.ToUpper(input.String()) | |
document.Call("getElementById", "descriptionUppercase"). | |
Set("innerHTML", outputMessage) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment