Discover Packages
github.com/derailed/pkg
iconoflix
package
Version:
v0.0.6
Opens a new window with list of versions in this module.
Published: Feb 25, 2018
License: Apache-2.0, Apache-2.0
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
Documentation
¶
Package iconoflix A playground lib to load Iconoflix movies from mem or file.
An Iconoflix movie is a representation of a movie as a collection of icons.
Call a service URL by specifying method, payload and optional cookies
Httper a client that handles HTTP calls
type Icon struct {
Emoji string `yaml:"emoji"`
}
Icon an emoji representation
type Movie struct {
Name string `yaml:"name"`
Icons []Icon `yaml':",inline"`
}
Movie an Iconoflix movie representation
RandMovie picks a random movie...
type Movies struct {
Movies []Movie `yaml:"movies"`
}
Movies a collection of Iconoflix movies
LoadFile the movie database from file
LoadMem the movie database from memory
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.