From 222854694e922344f18910ce3704115d08ca30cb Mon Sep 17 00:00:00 2001 From: Samuel Stauffer Date: Wed, 19 Mar 2014 13:57:32 -0700 Subject: Stylistic fixes, update imports, and some format string fixes --- control.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'control.go') diff --git a/control.go b/control.go index 3a13c15..9ae50ea 100644 --- a/control.go +++ b/control.go @@ -2,12 +2,12 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// This package provides LDAP client functions. package ldap import ( "fmt" - "github.com/marcsauter/asn1-ber" + + "github.com/SpruceHealth/asn1-ber" ) const ( @@ -45,7 +45,7 @@ func (c *ControlString) Encode() *ber.Packet { } func (c *ControlString) String() string { - return fmt.Sprintf("Control Type: %s (%q) Criticality: %s Control Value: %s", ControlTypeMap[c.ControlType], c.ControlType, c.Criticality, c.ControlValue) + return fmt.Sprintf("Control Type: %s (%q) Criticality: %t Control Value: %s", ControlTypeMap[c.ControlType], c.ControlType, c.Criticality, c.ControlValue) } type ControlPaging struct { @@ -76,7 +76,7 @@ func (c *ControlPaging) Encode() *ber.Packet { func (c *ControlPaging) String() string { return fmt.Sprintf( - "Control Type: %s (%q) Criticality: %s PagingSize: %d Cookie: %q", + "Control Type: %s (%q) Criticality: %t PagingSize: %d Cookie: %q", ControlTypeMap[ControlTypePaging], ControlTypePaging, false, -- cgit v1.2.3