decode

package
v0.0.0-...-b528bab Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Func

type Func func(out interface{}) ([]byte, error)

Func will decode into the supplied object.

func DecoderForURL

func DecoderForURL(u *url.URL) (d Func, 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