Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nouemankhal/go-ntp-client
Go solution for the Build Your Own NTP Client Coding Challenge by John Crickett
https://github.com/nouemankhal/go-ntp-client
client go network ntp udp
Last synced: 1 day ago
JSON representation
Go solution for the Build Your Own NTP Client Coding Challenge by John Crickett
- Host: GitHub
- URL: https://github.com/nouemankhal/go-ntp-client
- Owner: NouemanKHAL
- Created: 2024-04-21T13:10:36.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-04-22T08:47:55.000Z (7 months ago)
- Last Synced: 2024-04-22T17:44:00.664Z (7 months ago)
- Topics: client, go, network, ntp, udp
- Language: Go
- Homepage: https://codingchallenges.fyi/challenges/challenge-ntp/
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Coding Challenge: Build Your Own NTP Client
This is my solution to the coding challenge [John Crickett's Coding Challenges](https://codingchallenges.fyi/challenges/challenge-ntp).
## Setup
1. Clone the repo
1. Run the tool using of the following approaches:```shell
# Run the tool automatically using the go command
$ go run .# Build a binary and run it manually
$ go build -o gontpc
$ ./gontpc
```
1. Done!## Examples
```shell
$ go run . pool.ntp.org
t1 = 3922693541.211305000
t2 = 3922693541.562651112
t3 = 3922693541.564223255
t4 = 3922693541.488325000
delay = + 0.06413270183838904
offset = + 0.04973779048305005
```