This adds a stub for Perm on Go 1.15, which allows the OS package to compile again.
Этот коммит содержится в:
Nia Waldvogel 2021-12-25 12:33:40 -05:00 коммит произвёл Nia
родитель 9db8826b3b
коммит c685e0696a

Просмотреть файл

@ -1,3 +1,4 @@
//go:build !go1.16
// +build !go1.16 // +build !go1.16
package os package os
@ -49,3 +50,8 @@ func (m FileMode) IsDir() bool {
func (m FileMode) IsRegular() bool { func (m FileMode) IsRegular() bool {
return false return false
} }
// Perm is a stub, always returning 0.
func (m FileMode) Perm() FileMode {
return 0
}