Skip to content

lsongdev/ntp-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ntp-go

⌛ Simple Network Time Protocol Implementation in Golang.

Installation

~$ go get github.com/song940/ntp-go

Example

client

package main

import (
	"log"

	"github.com/song940/ntp-go/ntp"
)

func main() {
	client := ntp.NewClient(
		"time.apple.com:123",
	)
	time, err := client.GetTime()
	log.Println(time, err)
}

server

TODO: implement

Node.js Implementation

⌛ simple network time protocol implementation for node.js

https://github.com/song940/node-ntp

License

This project is licensed under the MIT License.

About

⌛ Simple Network Time Protocol Implementation in Golang.

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published