interfaces

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: May 27, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package interfaces contains go interfaces generated from IDL specs

The generated interfaces guarantee that go interfaces correspond to IDL specifications. Not all interfaces are used in production code; but then they are used in test code, where a type assertion is used to guarantee that a go type corresponds to a concrete interface.

This serves as a verification that web APIs are implemented according to the interfaces, as a test will fail if not; and can detect changes to the web IDL standards.

The types are also kept in a separate package for that exact reason, to avoid polluting run-time packages with code that has not use at run-time.

Directories

Path Synopsis
Package htmlinterfaces contains internal code representing the IDL interfaces in the HTML DOM API [HTML DOM API]: https://developer.mozilla.org/en-US/docs/Web/API/HTML_DOM_API
Package htmlinterfaces contains internal code representing the IDL interfaces in the HTML DOM API [HTML DOM API]: https://developer.mozilla.org/en-US/docs/Web/API/HTML_DOM_API
Package urlinterfaces contains internal code representing the IDL interfaces in the URL API [URL API]: https://developer.mozilla.org/en-US/docs/Web/API/URL_API
Package urlinterfaces contains internal code representing the IDL interfaces in the URL API [URL API]: https://developer.mozilla.org/en-US/docs/Web/API/URL_API

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL