summaryrefslogtreecommitdiff
path: root/src/hub
diff options
context:
space:
mode:
authorMarkus Grüneis <gimpf@gimpf.org>2014-10-16 20:15:47 +0200
committerMarkus Grüneis <gimpf@gimpf.org>2014-10-16 20:15:47 +0200
commit2cc64b5fbcacb19fd78301b1e6f911b9a7161fa0 (patch)
treec5810c3b1c0dc360265796edb15bc67430e22c89 /src/hub
parentadd mini server for unix-pipes (diff)
create debug version of sfive-hub
Diffstat (limited to 'src/hub')
-rw-r--r--src/hub/src/spreadspace.org/sfive-hub/s5hub.go13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/hub/src/spreadspace.org/sfive-hub/s5hub.go b/src/hub/src/spreadspace.org/sfive-hub/s5hub.go
index 0166cf9..370e209 100644
--- a/src/hub/src/spreadspace.org/sfive-hub/s5hub.go
+++ b/src/hub/src/spreadspace.org/sfive-hub/s5hub.go
@@ -1,7 +1,16 @@
package main
-import "fmt"
+import (
+ "fmt"
+ "log"
+ "spreadspace.org/sfive"
+)
func main() {
- fmt.Printf("Hello, world.\n")
+ fmt.Printf("s5: Hello, world.\n")
+ server, err := sfive.NewSfiveServer()
+ if err != nil {
+ log.Fatalf("failed to start S5: %v", err)
+ }
+ server.ListenAndServe()
}