Skip to content

Tools for working with FIRST IEP (Information Exchange Policy) objects

License

Notifications You must be signed in to change notification settings

jakewarren/firstiep

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

firstiep

GoDoc MIT License Go Report Card PRs Welcome

Tools for working with FIRST IEP (Information Exchange Policy) objects - https://www.first.org/iep/

Demo

Install

go get github.com/jakewarren/firstiep/...

Usage

As a library

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

}

As a cmd line utility

On the command line, run firstiep and follow the wizard to select the options you want, the tool will then output the JSON representation.

About

Tools for working with FIRST IEP (Information Exchange Policy) objects

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages