Created
July 15, 2015 01:12
-
-
Save Shadey/77db082d04e6681d71bd to your computer and use it in GitHub Desktop.
This file contains 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 ( | |
"fmt" | |
"net/http" | |
) | |
func index(w http.ResponseWriter, r *http.Request) { | |
fmt.Fprintf(w, "Welcome to the Pi") | |
} | |
func main() { | |
fmt.Println("Starting folder") | |
fs := http.StripPrefix("/files/", http.FileServer(http.Dir("files/"))) | |
http.HandleFunc("/", index) | |
http.Handle("/files/", fs) | |
http.ListenAndServe(":3000", nil) | |
} |
This file contains 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
SIGILL: illegal instruction | |
PC=0x362e8 | |
math.init·1() | |
/usr/lib/go/src/pkg/math/pow10.go:34 +0x28 | |
math.init() | |
/usr/lib/go/src/pkg/math/unsafe.go:21 +0x70 | |
fmt.init() | |
/usr/lib/go/src/pkg/fmt/scan.go:1164 +0x70 | |
compress/gzip.init() | |
/usr/lib/go/src/pkg/compress/gzip/gzip.go:217 +0x70 | |
net/http.init() | |
/usr/lib/go/src/pkg/net/http/transport.go:753 +0x78 | |
main.init() | |
/home/shadey/fileserver.go:17 +0x70 | |
goroutine 2 [runnable]: | |
created by runtime.main | |
/golang-1.0.2/src/pkg/runtime/proc.c:221 | |
trap 0x6 | |
error 0x0 | |
oldmask 0x0 | |
r0 0x6ac550 | |
r1 0x0 | |
r2 0x0 | |
r3 0x0 | |
r4 0x0 | |
r5 0x0 | |
r6 0x0 | |
r7 0x0 | |
r8 0x0 | |
r9 0x29e27c | |
r10 0x10735080 | |
fp 0x6ac137 | |
ip 0xcafebabe | |
sp 0xb6f45b5c | |
lr 0x3687c | |
pc 0x362e8 | |
cpsr 0x20000010 | |
fault 0x0 | |
exit status 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment