Tools for working with FIRST IEP (Information Exchange Policy) objects - https://www.first.org/iep/
go get github.com/jakewarren/firstiep/...
package main
import (
"fmt"
"github.com/jakewarren/firstiep"
)
func main() {
// create a new IEP object
i := firstiep.New()
// fill in fields you want represented
i.TLP = "RED"
// output the object for inspection
fmt.Println(i)
// perform validation on the object
if err := i.Validate(); err == nil {
fmt.Println("Valid!")
} else {
fmt.Println("Not valid:", err)
}
}
On the command line, run firstiep
and follow the wizard to select the options you want, the tool will then output the JSON representation.