()
| 12 | ) |
| 13 | |
| 14 | func main() { |
| 15 | fmt.Println("📁 Cross-Platform Paths 示例") |
| 16 | fmt.Println("================================") |
| 17 | |
| 18 | // 1. 标准路径 |
| 19 | demonstrateStandardPaths() |
| 20 | |
| 21 | // 2. 便捷方法 |
| 22 | demonstrateConvenienceMethods() |
| 23 | |
| 24 | // 3. 确保目录存在 |
| 25 | demonstrateEnsureDir() |
| 26 | |
| 27 | fmt.Println("\n✅ Cross-Platform Paths 示例完成!") |
| 28 | } |
| 29 | |
| 30 | func demonstrateStandardPaths() { |
| 31 | fmt.Println("\n📋 标准应用路径") |
nothing calls this directly
no test coverage detected