Home Blog Contact

NTP Client

Implementation of an NTP client in Go

Name: ntpc
Package: go.hansaray.pw/ntpc
Source: github.com/gotamer/ntpc.git
Docs: https://pkg.go.dev/go.hansaray.pw/ntpc
Version:
License: MIT

NTP Client

============

GoDoc

This is an implementation of a simple NTP client in Go. It uses the encoding/binary package to encode and decode NTP packets sent to and received from a remote NTP server over UDP.

It also does:

I use it to periodically update my Linux laptop system time. On my system it runs once an hour via a cron job.

This is a fork of Vladimir Vivien’s go-ntp-client. (Thank you Vladimir)
The original code is explained by Vladimir Vivien in this writeup titled Let’s make an NTP client in Go