examples/

directory
v0.0.0-...-9f309d8 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2018 License: GPL-3.0

README

example.go is a sample code on how to use the AIS library.

For a quick demonstration, try to run:

cat nmea-sample.txt | go run example.go

Or with live data:

netcat ais1.shipraiser.net 6492 | go run example.go

Or with a sentence:

echo '!AIVDM,1,1,,A,14eGrSPP00ncMJTO5C6aBwvP2D0?,0*7A' | go run example.go

example-tcp.go reads live NMEA data and serves them at http://localhost:8080

go run example-tcp.go

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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