summaryrefslogtreecommitdiffstats
path: root/examples/server.go
diff options
context:
space:
mode:
Diffstat (limited to 'examples/server.go')
-rw-r--r--examples/server.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/examples/server.go b/examples/server.go
index 3341991..b8beeeb 100644
--- a/examples/server.go
+++ b/examples/server.go
@@ -1,9 +1,12 @@
+// +build ignore
+
package main
import (
- "github.com/nmcclain/ldap"
"log"
"net"
+
+ "github.com/nmcclain/ldap"
)
/////////////
@@ -27,7 +30,7 @@ func main() {
listen := "localhost:3389"
log.Printf("Starting example LDAP server on %s", listen)
if err := s.ListenAndServe(listen); err != nil {
- log.Fatal("LDAP Server Failed: %s", err.Error())
+ log.Fatalf("LDAP Server Failed: %s", err.Error())
}
}