mirror of
https://blitiri.com.ar/repos/chasquid
synced 2025-12-19 14:57:04 +00:00
This patch updates all build tag constraints to add the new format, alongside the old one, to maintain backwards compatibility. This was done by using `go fmt`. See https://go.dev/doc/go1.17#gofmt and https://golang.org/design/draft-gobuild for more details.
25 lines
388 B
Go
25 lines
388 B
Go
// Command line tool for playing with the SPF library.
|
|
//
|
|
// Not for use in production, just development and experimentation.
|
|
//go:build !coverage
|
|
// +build !coverage
|
|
|
|
package main
|
|
|
|
import (
|
|
"flag"
|
|
"fmt"
|
|
"net"
|
|
|
|
"blitiri.com.ar/go/spf"
|
|
)
|
|
|
|
func main() {
|
|
flag.Parse()
|
|
|
|
r, err := spf.CheckHostWithSender(
|
|
net.ParseIP(flag.Arg(0)), "", flag.Arg(1))
|
|
fmt.Println(r)
|
|
fmt.Println(err)
|
|
}
|