* provider: adding Nomad provider * updating CONTRIBUTING.md with Nomad provider * updated README.md by adding the Nomad provider * fix typo * adding nomad/api and nomad/testutil deps * adding Nomad binary dependency for provider tests * fixed the nomad binary download command step and added tolerations to the nomad provider. * adding nomad provider demo gif * adding my name to authors * adding two missing go-rootcerts files after dep ensure * delete pod comment
24 lines
351 B
Go
24 lines
351 B
Go
// +build lz4debug
|
|
|
|
package lz4
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
"path/filepath"
|
|
"runtime"
|
|
)
|
|
|
|
const debugFlag = true
|
|
|
|
func debug(args ...interface{}) {
|
|
_, file, line, _ := runtime.Caller(1)
|
|
file = filepath.Base(file)
|
|
|
|
f := fmt.Sprintf("LZ4: %s:%d %s", file, line, args[0])
|
|
if f[len(f)-1] != '\n' {
|
|
f += "\n"
|
|
}
|
|
fmt.Fprintf(os.Stderr, f, args[1:]...)
|
|
}
|