A lightweight mechanism to provide an *instant kickstart* to a Go web server instance upon changing any Go source files under the project directory (and its subdirectories).

env_plan9.go 489B

123456789101112131415161718192021222324252627
  1. // Copyright 2011 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. // Plan 9 environment variables.
  5. package plan9
  6. import (
  7. "syscall"
  8. )
  9. func Getenv(key string) (value string, found bool) {
  10. return syscall.Getenv(key)
  11. }
  12. func Setenv(key, value string) error {
  13. return syscall.Setenv(key, value)
  14. }
  15. func Clearenv() {
  16. syscall.Clearenv()
  17. }
  18. func Environ() []string {
  19. return syscall.Environ()
  20. }