Categorygithub.com/gotamer/ntpc
repositorypackage
1.0.0
Repository: https://github.com/gotamer/ntpc.git
Documentation: pkg.go.dev

# README

GoDoc

This is a fork of Vladimir Vivien's go-ntp-client. (Thank you Vladimir) I added a syslog and local date update.

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

A trivial NTP Client

This repository is an implementation of a (really) trivial 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. You can learn more about NTP here, read the specs RFC5905, and find a (seemingly) way better Go NTP client, with many features implemented, here.

The code is explained in this writeup titled Let's make an NTP client in Go.