This project implements a go server that returns the boot duration using
systemd-analyze
.
To launch the server, simply run:
./ucr-e1
Get the version:
> curl -Ss localhost:8080/version
v0.0.1
Get the boot duration:
> curl -Ss localhost:8080/duration
3min 34.249s
First, clone the repository:
git clone https://github.com/gc-plp/ex1
And build it:
cd ex1 && go build