文件操作 - lib.go
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/go-1.23/test/fixedbugs/issue52279.dir/lib.go
编辑文件内容
package lib type FMap[K comparable, V comparable] map[K]V //go:noinline func (m FMap[K, V]) Flip() FMap[V, K] { out := make(FMap[V, K]) return out } type MyType uint8 const ( FIRST MyType = 0 ) var typeStrs = FMap[MyType, string]{ FIRST: "FIRST", } func (self MyType) String() string { return typeStrs[self] }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件