D:/Go/src/syscall/dll_windows.go:294 +0x21
internal/syscall/windows.GetFileInformationByHandleEx(0x6e0, 0x9, 0x1142dc60, 0x
8, 0x3, 0x1141b348)
D:/Go/src/internal/syscall/windows/zsyscall_windows.go:353 +0x27
os.newFileStatFromGetFileInformationByHandle(0x11688940, 0xa, 0x6e0, 0x0, 0x2, 0
x11688900)
D:/Go/src/os/types_windows.go:52 +0x135
os.(*File).Stat(0x1143bff0, 0x6cc990, 0x1143bff0, 0x6cc980, 0x1143bff0)
D:/Go/src/os/stat_windows.go:55 +0x133
net/http.serveFile(0x6cbdf0, 0x1144ed80, 0x11485500, 0x6c97f0, 0x1143a670, 0x116
88900, 0x8, 0x656d01)
D:/Go/src/net/http/fs.go:712 +0xe3
net/http.(*fileHandler).ServeHTTP(0x1143a678, 0x6cbdf0, 0x1144ed80, 0x11485500)
D:/Go/src/net/http/fs.go:876 +0x84
net/http.StripPrefix.func1(0x6cbdf0, 0x1144ed80, 0x11485480)
D:/Go/src/net/http/server.go:2034 +0x12c
net/http.HandlerFunc.ServeHTTP(0x114b6480, 0x6cbdf0, 0x1144ed80, 0x11485480)
D:/Go/src/net/http/server.go:1995 +0x34
net/http.(*ServeMux).ServeHTTP(0x86fc40, 0x6cbdf0, 0x1144ed80, 0x11485480)
D:/Go/src/net/http/server.go:2375 +0x189
net/http.serverHandler.ServeHTTP(0x11484280, 0x6cbdf0, 0x1144ed80, 0x11485480)
D:/Go/src/net/http/server.go:2774 +0x83
net/http.(*conn).serve(0x1175cde0, 0x6cc280, 0x114b7e00)
D:/Go/src/net/http/server.go:1878 +0x796
created by net/http.(*Server).Serve
D:/Go/src/net/http/server.go:2884 +0x26c
2019/06/11 16:30:17 http: panic serving 192.168.77.8:13639: Failed to find GetFi
leInformationByHandleEx procedure in kernel32.dll: The specified procedure could
not be found.
goroutine 83 [running]:
net/http.(*conn).serve.func1(0x116132c0)
D:/Go/src/net/http/server.go:1769 +0x9b
panic(0x62f700, 0x117a2000)
D:/Go/src/runtime/panic.go:522 +0x165
syscall.(*LazyProc).mustFind(0x1143d9c0)
D:/Go/src/syscall/dll_windows.go:287 +0x42
syscall.(*LazyProc).Addr(0x1143d9c0, 0x1142a8c0)
D:/Go/src/syscall/dll_windows.go:294 +0x21
internal/syscall/windows.GetFileInformationByHandleEx(0x6e0, 0x9, 0x1142dc60, 0x
8, 0x3, 0x1141b348)
D:/Go/src/internal/syscall/windows/zsyscall_windows.go:353 +0x27
os.newFileStatFromGetFileInformationByHandle(0x116889d0, 0xa, 0x6e0, 0x0, 0x2, 0
x11688958)
D:/Go/src/os/types_windows.go:52 +0x135
os.(*File).Stat(0x117a0018, 0x6cc990, 0x117a0018, 0x6cc980, 0x117a0018)
D:/Go/src/os/stat_windows.go:55 +0x133
net/http.serveFile(0x6cbdf0, 0x1144ee10, 0x11485580, 0x6c97f0, 0x1143a670, 0x116
88958, 0x8, 0x656d01)
D:/Go/src/net/http/fs.go:712 +0xe3
net/http.(*fileHandler).ServeHTTP(0x1143a678, 0x6cbdf0, 0x1144ee10, 0x11485580)
D:/Go/src/net/http/fs.go:876 +0x84
net/http.StripPrefix.func1(0x6cbdf0, 0x1144ee10, 0x114dd580)
D:/Go/src/net/http/server.go:2034 +0x12c
net/http.HandlerFunc.ServeHTTP(0x114b6480, 0x6cbdf0, 0x1144ee10, 0x114dd580)
D:/Go/src/net/http/server.go:1995 +0x34
net/http.(*ServeMux).ServeHTTP(0x86fc40, 0x6cbdf0, 0x1144ee10, 0x114dd580)
D:/Go/src/net/http/server.go:2375 +0x189
net/http.serverHandler.ServeHTTP(0x11484280, 0x6cbdf0, 0x1144ee10, 0x114dd580)
D:/Go/src/net/http/server.go:2774 +0x83
net/http.(*conn).serve(0x116132c0, 0x6cc280, 0x1178a040)
D:/Go/src/net/http/server.go:1878 +0x796
created by net/http.(*Server).Serve
D:/Go/src/net/http/server.go:2884 +0x26c
有疑问加站长微信联系(非本文作者)