mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-21 12:25:02 +00:00
Migrate to built-in Go vendoring.
This also removes `godep` calls from make scripts. Of note is that currently `./...` checking in acceptance tests is disabled.
This commit is contained in:
24
vendor/github.com/go-ldap/ldap/debug.go
generated
vendored
Normal file
24
vendor/github.com/go-ldap/ldap/debug.go
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
package ldap
|
||||
|
||||
import (
|
||||
"log"
|
||||
|
||||
"gopkg.in/asn1-ber.v1"
|
||||
)
|
||||
|
||||
// debbuging type
|
||||
// - has a Printf method to write the debug output
|
||||
type debugging bool
|
||||
|
||||
// write debug output
|
||||
func (debug debugging) Printf(format string, args ...interface{}) {
|
||||
if debug {
|
||||
log.Printf(format, args...)
|
||||
}
|
||||
}
|
||||
|
||||
func (debug debugging) PrintPacket(packet *ber.Packet) {
|
||||
if debug {
|
||||
ber.PrintPacket(packet)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user