Documentation ¶
Overview ¶
Package manage lists and manages available Bible translations
Index ¶
- type Config
- func (c *Config) Delete(ver string, lang string) error
- func (c *Config) GetLanguage(ver string) (string, error)
- func (c *Config) GetPath(ver string, lang string) string
- func (c *Config) GetPathShort(ver string) (string, error)
- func (c *Config) IsAvailable(ver string) bool
- func (c *Config) ListAvailable() (map[string][]string, error)
- func (c *Config) ListLanguages() ([]string, error)
- func (c *Config) ListSplitBooks(ver string, lang string) ([]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // BiblePath path to the directory of Gratis Bibles BiblePath string // Split determines whether or not to use the split version of Gratis Bibles Split bool }
Config contains the configuration needed for most functions
func (*Config) GetLanguage ¶
GetLanguage returns the language for a version ID
func (*Config) GetPath ¶
GetPath returns the full path of an OSIS Bible (when using normal GratisBible)
func (*Config) GetPathShort ¶
GetPathShort is identical to GetPath, except it only requires the version but not the language (requires that the language exists)
func (*Config) IsAvailable ¶
IsAvailable uses ListAvailable to determine is a certain language is available
func (*Config) ListAvailable ¶
ListAvailable lists the available translations stored according to language
func (*Config) ListLanguages ¶
ListLanguages lists all the languages available in Config.BiblePath
Click to show internal directories.
Click to hide internal directories.