wp_spotlight

package
v1.4.5 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const NO_COPYRIGHT string = "© Unknown Photographer"
View Source
const NO_DESCRIPTION string = "Unidentified Photo"

Variables

This section is empty.

Functions

func ReadUTF16

func ReadUTF16(fileName string) ([]byte, error)

ReadUTF16 required to correctly read the metadata JSON files via https://stackoverflow.com/questions/15783830/how-to-read-utf16-text-file-to-string-in-golang/15794113

func ScanUTF16LinesFunc

func ScanUTF16LinesFunc(byteOrder binary.ByteOrder) (bufio.SplitFunc, func() binary.ByteOrder)

ScanUTF16LinesFunc returns two functions dependent upon byteOrder: SplitFunc is a split function for a Scanner that returns each line of text, stripped of any trailing end-of-line marker. The returned line may be empty. The end-of-line marker is one optional carriage return followed by one mandatory newline. In regular expression notation, it is `\r?\n`. The last non-empty line of input will be returned even if it has no newline. OrderFunc returns byte order

func UTF16BytesToString

func UTF16BytesToString(b []byte, o binary.ByteOrder) string

UTF16BytesToString converts UTF-16 encoded bytes, in big or little endian byte order, to a UTF-8 encoded string.

func Update

func Update(folder string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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