From c66364ee720ed0c92b38f3387ed77b8ef058a067 Mon Sep 17 00:00:00 2001 From: Dmitri Shuralyov Date: Thu, 8 Oct 2015 02:07:33 -0700 Subject: [PATCH] Learn about gopherjs/gopherjs#319. --- 161/index.html | 13 +++++++++++++ 161/script.go | 25 +++++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 161/index.html create mode 100644 161/script.go diff --git a/161/index.html b/161/index.html new file mode 100644 index 0000000..d5f1f67 --- /dev/null +++ b/161/index.html @@ -0,0 +1,13 @@ + + + + + + + + + + diff --git a/161/script.go b/161/script.go new file mode 100644 index 0000000..a75553f --- /dev/null +++ b/161/script.go @@ -0,0 +1,25 @@ +// +build js + +package main + +import ( + "github.com/gopherjs/gopherjs/js" +) + +func main() { + js.Global.Get("document").Call("write", "[GopherJS] text works, but 😀 fails") +} + +/* +package main + +import "fmt" + +func main() { + in := 128512 + + fmt.Printf(`\u{%X}`, in) + + // Output: \u{1F600} +} +*/