Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeB64IntoByteSlice ¶
DecodeB64IntoByteSlice decodes the given b64 string into a byte slice
func EncodeB64ByteSlice ¶
EncodeB64ByteSlice decodes the given b64 byte slice into a string
Types ¶
type B64Files ¶
type B64Files struct { Logos struct { VColor BasicLogoProps `json:"v-color"` VWhite BasicLogoProps `json:"v-white"` HColor BasicLogoProps `json:"h-color"` HWhite BasicLogoProps `json:"h-white"` } `json:"logos"` Fonts []string `json:"fonts"` // fonts[0] = ProductSans }
B64Files represents the file used in the program represented as base64 strings well this way is faster than loading an actual file (i've tested alot) and swapping files only requires restarting the server :0
type BasicLogoProps ¶
BasicLogoProps defines basic logo props
type DecodedB64File ¶
DecodedB64File defines decoded base64 file
type Files ¶
type Files struct {
// contains filtered or unexported fields
}
Files manages the base64 files pulled from the json file (file of files LOL)
func GetFilesInstance ¶
func GetFilesInstance() *Files
GetFilesInstance returns a singlton Files instance (much faster)
func (*Files) GetHorizontalLogoColored ¶
func (f *Files) GetHorizontalLogoColored() DecodedB64File
GetHorizontalLogoColored returns basic logo props
func (*Files) GetHorizontalLogoWhite ¶
func (f *Files) GetHorizontalLogoWhite() DecodedB64File
GetHorizontalLogoWhite returns basic logo props
func (*Files) GetProductSansFont ¶
GetProductSansFont returns a byte slice of the thing
func (*Files) GetVerticalLogoColored ¶
func (f *Files) GetVerticalLogoColored() DecodedB64File
GetVerticalLogoColored returns basic logo props
func (*Files) GetVerticalLogoWhite ¶
func (f *Files) GetVerticalLogoWhite() DecodedB64File
GetVerticalLogoColored returns basic logo props