What is an Atmosphere account?
By logging in you agree to the terms, privacy policy and community guidelines.
Don't have an account? Create one
1 2 3 4 5 6 7 8 9 10 11 12 13
//go:build !unix package assets import "os" func lockPath(p string) (func(), error) { f, err := os.OpenFile(p, os.O_RDWR|os.O_CREATE, 0o600) if err != nil { return nil, err } return func() { f.Close() }, nil }