Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadJSONBytes ¶
LoadJSONBytes Extracts raw data in JSON format from different sources, i.e cue or yaml files
Types ¶
type RawFormat ¶
type RawFormat string
func IdentifyFormat ¶
IdentifyFormat does best effort to identify the format of the raw contract by going the unmarshalling path in the following order: json, cue, yaml NOTE that we are just validating the format, not the content using regular marshalling not even proto marshalling, that comes later once we know the format
func (RawFormat) Values ¶
Implements https://pkg.go.dev/entgo.io/ent/schema/field#EnumValues
Click to show internal directories.
Click to hide internal directories.