We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d297fb commit 523c605Copy full SHA for 523c605
README.md
@@ -53,8 +53,23 @@ Usage of ./git-http-backend:
53
54
To embed your own server import and use the package
55
56
-```
57
-import "github.com/asim/git-http-backend/server"
+```go
+package main
58
+
59
+import (
60
+ "log"
61
+ "net/http"
62
63
+ github.com/asim/git-http-backend/server"
64
+)
65
66
+func main() {
67
+ http.HandleFunc("/", server.Handler())
68
69
+ if err := http.ListenAndServe(":8080", nil); err != nil {
70
+ log.Fatal("ListenAndServe: ", err)
71
+ }
72
+}
73
```
74
75
## License
0 commit comments