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_unset.go 306B

1234567891011121314
  1. // Copyright 2014 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. // +build go1.4
  5. package unix
  6. import "syscall"
  7. func Unsetenv(key string) error {
  8. // This was added in Go 1.4.
  9. return syscall.Unsetenv(key)
  10. }