Move RnD sample programs to examples dir, rename test_data to example_data, add stubs for server and client

This commit is contained in:
eleksir
2025-10-27 18:14:28 +03:00
parent f8a41a8cb4
commit b0c28ef87f
54 changed files with 10744 additions and 24 deletions

23
cmd/doll-master/main.go Normal file
View File

@@ -0,0 +1,23 @@
package main
import (
"doll/internal/log"
"fmt"
"net/http"
)
func main() {
// Register http-request handler.
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, "Doll-master here!")
})
// And run server on 8240 port.
log.Info("Starting server at port 8240")
if err := http.ListenAndServe(":8240", nil); err != nil {
log.Fatalf("Error starting the server: %s", err)
}
}
/* vim: set ft=go noet ai ts=4 sw=4 sts=4: */