ntpc

command module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 31, 2023 License: MIT Imports: 10 Imported by: 0

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.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL