Documentation
¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Files ¶
Files accepts a path to one of the three needed files, attempts to find the others, and provides the conventional name and bytes for the file.
Example ¶
package main import ( "crypto/md5" "fmt" "github.com/dotpostcard/postcards-go/compile" ) func main() { filename, data, err := compile.Files("../fixtures/hello-meta.yaml") if err != nil { panic(err) } fmt.Printf("%s has checksum %x", filename, md5.Sum(data)) }
Output: hello.postcard has checksum a266fd1de5a18f59c9578276ff5607a6