summaryrefslogtreecommitdiff
path: root/node_modules/shiki/samples/go.sample
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/shiki/samples/go.sample')
-rw-r--r--node_modules/shiki/samples/go.sample18
1 files changed, 18 insertions, 0 deletions
diff --git a/node_modules/shiki/samples/go.sample b/node_modules/shiki/samples/go.sample
new file mode 100644
index 0000000..0af7005
--- /dev/null
+++ b/node_modules/shiki/samples/go.sample
@@ -0,0 +1,18 @@
+package main
+
+import (
+ "fmt"
+ "log"
+ "net/http"
+)
+
+func handler(w http.ResponseWriter, r *http.Request) {
+ fmt.Fprintf(w, "Hi there, I love %s!", r.URL.Path[1:])
+}
+
+func main() {
+ http.HandleFunc("/", handler)
+ log.Fatal(http.ListenAndServe(":8080", nil))
+}
+
+// From https://golang.org/doc/articles/wiki/#tmp_3 \ No newline at end of file