Files
sys/plan9/env_plan9.go
David du Colombier 86577e58ba x/sys/plan9: implement the environment functions by wrapping syscall
Make Plan 9 implementation similar to Unix.

Fixes golang/go#10803.

Change-Id: Ib2f069a68370792daf926ec2a393f9cf16c2816b
Reviewed-on: https://go-review.googlesource.com/10104
Reviewed-by: Rob Pike <r@golang.org>
2015-05-15 15:33:54 +00:00

28 lines
489 B
Go

// Copyright 2011 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.
// Plan 9 environment variables.
package plan9
import (
"syscall"
)
func Getenv(key string) (value string, found bool) {
return syscall.Getenv(key)
}
func Setenv(key, value string) error {
return syscall.Setenv(key, value)
}
func Clearenv() {
syscall.Clearenv()
}
func Environ() []string {
return syscall.Environ()
}