4 ms·
Go does include a reasonably capable HTTP server, so they could have done it in Go... but would you add the Go's HTTP server LOC to the count? :)
by ivoras 6y ago
Go does include a reasonably capable HTTP server, so they could have done it in Go... but would you add the Go's HTTP server LOC to the count? :)
- tutfbhuf 6y agoIf Go's HTTP server would be a standalone binary and you have to take care of it separately from the main code base, then yes.
- devjam 6y agoGo's HTTP server is typically imported as a package, just like `math/rand`, `time` or `fmt`. The resultant compiled binary would then be larger than if it had not been imported, but the package itself doesn't contribute to LOC. FWIW, the app does import and run Go's HTTP server for "server" commands: https://github.com/geohot/minikeyvalue/blob/master/src/main.go#L108 https://github.com/geohot/minikeyvalue/blob/master/src/main....