Browse Source

Get rid of many appengine build tags

This is now controlled at the top level goji package: these packages are
not even compiled in when using App Engine. This is sensible, since
neither package is of any use there.
Carl Jackson 11 years ago
parent
commit
3b2ab247aa
6 changed files with 15 additions and 6 deletions
  1. +1
    -1
      bind/einhorn.go
  2. +1
    -1
      bind/einhorn_stub.go
  3. +1
    -1
      bind/systemd.go
  4. +1
    -1
      bind/systemd_stub.go
  5. +1
    -1
      graceful/einhorn.go
  6. +10
    -1
      serve_appengine.go

+ 1
- 1
bind/einhorn.go View File

@ -1,4 +1,4 @@
// +build !windows,!appengine
// +build !windows
package bind package bind


+ 1
- 1
bind/einhorn_stub.go View File

@ -1,4 +1,4 @@
// +build windows appengine
// +build windows
package bind package bind


+ 1
- 1
bind/systemd.go View File

@ -1,4 +1,4 @@
// +build !windows,!appengine
// +build !windows
package bind package bind


+ 1
- 1
bind/systemd_stub.go View File

@ -1,4 +1,4 @@
// +build windows appengine
// +build windows
package bind package bind


+ 1
- 1
graceful/einhorn.go View File

@ -1,4 +1,4 @@
// +build !windows,!appengine
// +build !windows
package graceful package graceful


+ 10
- 1
serve_appengine.go View File

@ -2,7 +2,16 @@
package goji package goji
import "net/http"
import (
"log"
"net/http"
)
func init() {
if fl := log.Flags(); fl&log.Ltime != 0 {
log.SetFlags(fl | log.Lmicroseconds)
}
}
// Serve starts Goji using reasonable defaults. // Serve starts Goji using reasonable defaults.
func Serve() { func Serve() {


Loading…
Cancel
Save