decode

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 20, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DecodeFunc

type DecodeFunc func(out *SchemaRelationships) error

DecodeFunc will decode into the SchemaRelationships object.

func DecoderForURL

func DecoderForURL(u *url.URL) (d DecodeFunc, err error)

DecoderForURL returns the appropriate decoder for a given URL. Some URLs have special handling to dereference to the actual file.

type SchemaRelationships

type SchemaRelationships struct {
	Schema        string `yaml:"schema"`
	Relationships string `yaml:"relationships"`
}

SchemaRelationships holds the schema (as a string) and a list of relationships (as a string) in the format from the devtools download API.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳