Source file src/cmd/internal/osinfo/os_wasip1.go
1 // Copyright 2023 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 //go:build wasip1 6 7 package osinfo 8 9 import ( 10 "errors" 11 "fmt" 12 ) 13 14 // Version returns the OS version name/number. 15 func Version() (string, error) { 16 return "", fmt.Errorf("unable to determine OS version: %w", errors.ErrUnsupported) 17 } 18