Files
zkcoi e9ca2f7d70 fix: rename manager module to git.zkcoi.com/zkcoi/Meshray-Manager
- go.mod module path matches repo zkcoi/Meshray-Manager (case-distinct from zkcoi/Meshray/core)
- rewrite internal imports meshray/{internal,web,pkg} -> Meshray-Manager/... (core refs kept)
- sync README.md / install.sh repo URLs; add CHANGELOG entry
2026-07-15 16:25:46 +08:00

37 lines
736 B
Go

package main
import (
"fmt"
"io/fs"
"git.zkcoi.com/zkcoi/Meshray-Manager/web"
)
func main() {
fmt.Println("=== 测试 WebAssets ===")
count := 0
err := fs.WalkDir(web.WebAssets, ".", func(path string, d fs.DirEntry, err error) error {
if err != nil {
return err
}
info, _ := d.Info()
fmt.Printf(" %s (%d bytes)\n", path, info.Size())
count++
return nil
})
if err != nil {
fmt.Printf("错误:%v\n", err)
} else {
fmt.Printf("\n总共 %d 个文件/目录\n", count)
// 检查 index.html (此时在 dist 目录下)
if _, err := fs.Stat(web.WebAssets, "dist/index.html"); err == nil {
fmt.Println("✅ index.html 存在")
} else {
fmt.Printf("❌ index.html 不存在:%v\n", err)
}
}
}