This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright 2009 The Go Authors. All rights reserved. | |
// Use of this source code is governed by a BSD-style | |
// license that can be found in the LICENSE file. | |
package main | |
import ( | |
"fmt" | |
"time" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
/* | |
[...] angles [...] are specified as | |
up to three numbers representing degrees, minutes and seconds. The | |
last number may be fractional. The numbers are either separated by | |
<,> (commas) or suffixed, in order: | |
degrees by <°> (degree sign), | |
minutes by <′> (prime) or <'> (apostrophe), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config interface 'loopback' | |
option ifname 'lo' | |
option proto 'static' | |
option ipaddr '127.0.0.1' | |
option netmask '255.0.0.0' | |
config globals 'globals' | |
option ula_prefix 'fdxx:xxxx:xxxx::/48' | |
config interface 'lan' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
This program writes to a database concurrently from 16 goroutines. | |
To see the results sorted (GNU sort can't sort by two numeric fields): | |
sqlite3 the.db 'select * from tbl' \ | |
| awk -F\| '{printf "%3d %5d\n", $1, $2}' | sort | less | |
Here's a little script that interprets the results: |