package main import ( "net/http" ) func main() { http.Handle( "/assets/", http.StripPrefix("/assets/", http.FileServer(http.Dir("e:/"))), ) http.ListenAndServe(":8080", nil) }
本文出自 “frank_zfh” 博客,请务必保留此出处http://zengfanhong.blog.51cto.com/8894077/1892727
原文地址:http://zengfanhong.blog.51cto.com/8894077/1892727