ZhangZhihui's Blog  

2024年11月28日

摘要: In routes.go: router.Handler(http.MethodGet, "/debug/vars", expvar.Handler()) func main() { expvar.NewString("version").Set(version) ... func main() { 阅读全文
posted @ 2024-11-28 21:22 ZhangZhihuiAAA 阅读(10) 评论(0) 推荐(0) 编辑
 
摘要: package main import ( "log" "net/http" ) const html = ` <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> </head> <body> <h1>Simple CORS< 阅读全文
posted @ 2024-11-28 10:55 ZhangZhihuiAAA 阅读(4) 评论(0) 推荐(0) 编辑