package
Version:
v0.7.0
Opens a new window with list of versions in this module.
Published: Feb 18, 2024
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type API[T any] interface {
API() T
FromAPI(in T)
}
API holds a method to convert an underlying implementation to its API counterpart.
This method uses generics to support different API entities.
const (
FormatJSON Format = "json"
FormatYAML Format = "yaml"
)
JSON holds a method to convert an underlying implementation to JSON format.
YAML holds a method to convert an underlying implementation to YAML format.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.