summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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()
}