producer: rimuove tutti i record tranne il primo ( il piu' recente ) lrange(1, -1) main: options: xymon: manda stato a xymon
15 lines
172 B
Go
15 lines
172 B
Go
// Testmain.go
|
|
package main
|
|
|
|
import (
|
|
"flag"
|
|
"fmt"
|
|
"testing"
|
|
)
|
|
|
|
func TestOptions(t *testing.T) {
|
|
flag.Usage = usage
|
|
flag.Parse()
|
|
|
|
fmt.Printf("Config: %+v\n", opts)
|
|
}
|