Skip to content

Commit

Permalink
Make code build in appengine
Browse files Browse the repository at this point in the history
  • Loading branch information
raphael committed Dec 2, 2015
1 parent 21551c2 commit 0760540
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions guesswidth_ae.go
@@ -0,0 +1,10 @@
// +build appengine

package kingpin

import "io"

func guessWidth(w io.Writer) int {
// No need to guess for appengine...
return 80
}
2 changes: 1 addition & 1 deletion guesswidth_unix.go
@@ -1,4 +1,4 @@
// +build linux freebsd darwin dragonfly netbsd openbsd
// +build !appengine,linux freebsd darwin dragonfly netbsd openbsd

package kingpin

Expand Down

0 comments on commit 0760540

Please sign in to comment.