summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-11-01 04:03:19 -0500
committerJeff Carr <[email protected]>2024-11-01 04:03:19 -0500
commit6337988092218a0080fa164aab4469334979b1b5 (patch)
treeb81c8e178034b5b206b767ba4ec1eccd9644d0e2
parent20e958559e0a563f8b7c7b4bf4c4a95e328b1f37 (diff)
cleanup old example
Signed-off-by: Jeff Carr <[email protected]>
-rw-r--r--example/main.go7
-rw-r--r--human.go1
2 files changed, 0 insertions, 8 deletions
diff --git a/example/main.go b/example/main.go
index 4554af3..bf6d4ef 100644
--- a/example/main.go
+++ b/example/main.go
@@ -2,8 +2,6 @@ package main
import (
"fmt"
- "io/ioutil"
- "log"
"os"
pb "go.wit.com/lib/protobuf/virtbuf"
@@ -16,11 +14,6 @@ import (
func main() {
TestWriteCluster()
- _, err := ioutil.ReadFile("/tmp/testing4.protobuf")
- if err != nil {
- log.Fatalln("Error reading file:", err)
- }
-
var c *pb.NewCluster
c = pb.InitCluster()
diff --git a/human.go b/human.go
index 0ace136..7b0f42e 100644
--- a/human.go
+++ b/human.go
@@ -105,7 +105,6 @@ func FormatDuration(d time.Duration) string {
return result
}
-
func (d *Droplet) SprintHeader() string {
header := fmt.Sprintf("%-3.3s %-9.9s %-20.20s", d.Current.State, d.Current.Hypervisor, d.Hostname)