1
0
mirror of https://blitiri.com.ar/repos/chasquid synced 2025-12-19 14:57:04 +00:00
Files
go-chasquid-smtp/cmd/spf-check/spf-check.go
Alberto Bertogli 5bb17c7066 Update build tag constraints
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.
2022-08-08 17:52:34 +01:00

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)
}