a41f938cec
As we have seen, dependencies version can prevent the build. We should user lock versions on dependencies that we know work: * Packages are vendored * Add Godep support * Added addtional install step in readme * Fix travis build error
18 lignes
243 o
Go
18 lignes
243 o
Go
package missinggo
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
)
|
|
|
|
func Unchomp(s string) string {
|
|
if len(s) > 0 && s[len(s)-1] == '\n' {
|
|
return s
|
|
}
|
|
return s + "\n"
|
|
}
|
|
|
|
func Fatal(msg interface{}) {
|
|
os.Stderr.WriteString(Unchomp(fmt.Sprint(msg)))
|
|
os.Exit(1)
|
|
}
|