From a008509e204d93782c3f813d8bb2be14881d0519 Mon Sep 17 00:00:00 2001 From: lye Date: Wed, 21 Mar 2012 22:39:33 -0500 Subject: [PATCH] Kill the example, will replace with tests later --- example/Makefile | 13 ------------- example/test.go | 31 ------------------------------- 2 files changed, 44 deletions(-) delete mode 100644 example/Makefile delete mode 100644 example/test.go diff --git a/example/Makefile b/example/Makefile deleted file mode 100644 index 05650bc..0000000 --- a/example/Makefile +++ /dev/null @@ -1,13 +0,0 @@ -include $(GOROOT)/src/Make.inc - -OBJS := $(patsubst %.go,%.$O,$(wildcard *.go)) -OUT := $(patsubst %.$O,%,$(OBJS)) - -all: $(OBJS) - -%.$O: %.go - $(GC) $< - $(LD) -o $(patsubst %.$O,%,$@) $@ - -clean: - rm -f *.$O $(OBJS) $(OUT) diff --git a/example/test.go b/example/test.go deleted file mode 100644 index 9f7e81d..0000000 --- a/example/test.go +++ /dev/null @@ -1,31 +0,0 @@ -package main - -import ( - // irc "github.com/thoj/Go-IRC-Client-Library" - "fmt" - "os" - "irc" -) - -func main() { - irccon := irc.IRC("testgo", "testgo") - err := irccon.Connect("irc.efnet.net:6667") - if err != nil { - fmt.Printf("%s\n", err) - fmt.Printf("%#v\n", irccon) - os.Exit(1) - } - irccon.AddCallback("001", func(e *irc.IRCEvent) { irccon.Join("#testgo1") }) - irccon.AddCallback("001", func(e *irc.IRCEvent) { irccon.Join("#testgo2") }) - irccon.AddCallback("001", func(e *irc.IRCEvent) { irccon.Join("#testgo3") }) - irccon.AddCallback("001", func(e *irc.IRCEvent) { irccon.Join("#testgo4") }) - irccon.AddCallback("001", func(e *irc.IRCEvent) { irccon.Join("#testgo5") }) - irccon.AddCallback("001", func(e *irc.IRCEvent) { irccon.Join("#testgo6") }) - irccon.ReplaceCallback("001", 0, func(e *irc.IRCEvent) { irccon.Join("#testgo01") }) - irccon.ReplaceCallback("001", 1, func(e *irc.IRCEvent) { irccon.Join("#testgo02") }) - irccon.ReplaceCallback("001", 2, func(e *irc.IRCEvent) { irccon.Join("#testgo03") }) - irccon.ReplaceCallback("001", 3, func(e *irc.IRCEvent) { irccon.Join("#testgo04") }) - irccon.ReplaceCallback("001", 4, func(e *irc.IRCEvent) { irccon.Join("#testgo05") }) - irccon.ReplaceCallback("001", 6, func(e *irc.IRCEvent) { irccon.Join("#testgo06") }) - irccon.Loop() -}