文件操作 - notgo120.go
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/go-1.23/src/cmd/dist/notgo120.go
编辑文件内容
// Copyright 2022 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Go 1.22 and later requires Go 1.20 as the bootstrap toolchain. // If cmd/dist is built using an earlier Go version, this file will be // included in the build and cause an error like: // // % GOROOT_BOOTSTRAP=$HOME/sdk/go1.16 ./make.bash // Building Go cmd/dist using /Users/rsc/sdk/go1.16. (go1.16 darwin/amd64) // found packages main (build.go) and building_Go_requires_Go_1_20_6_or_later (notgo120.go) in /Users/rsc/go/src/cmd/dist // % // // which is the best we can do under the circumstances. // // See go.dev/issue/44505 for more background on // why Go moved on from Go 1.4 for bootstrap. //go:build !go1.20 package building_Go_requires_Go_1_20_6_or_later
修改文件时间
将文件时间修改为当前时间的前一年
删除文件