文件操作 - issue6399.go
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/go-1.23/test/fixedbugs/issue6399.go
编辑文件内容
// compile package main type Foo interface { Print() } type Bar struct{} func (b Bar) Print() {} func main() { b := make([]Bar, 20) f := make([]Foo, 20) for i := range f { f[i] = b[i] } T(f) _ = make([]struct{}, 1) } func T(f []Foo) { for i := range f { f[i].Print() } }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件