github.com/nextlinux/gosbom@v0.81.1-0.20230627115839-1ff50c281391/gosbom/formats/gosbomjson/format.go (about)

     1  package gosbomjson
     2  
     3  import (
     4  	"github.com/nextlinux/gosbom/gosbom/sbom"
     5  	"github.com/nextlinux/gosbom/internal"
     6  )
     7  
     8  const ID sbom.FormatID = "gosbom-json"
     9  
    10  func Format() sbom.Format {
    11  	return sbom.NewFormat(
    12  		internal.JSONSchemaVersion,
    13  		encoder,
    14  		decoder,
    15  		validator,
    16  		ID, "json", "gosbom",
    17  	)
    18  }