samples/samples.go
func Resource(folder, filename, ext string) string {
	var root string
	if ext == "pdf" || ext == "svg" {
		root = "../"
	}
	return fmt.Sprintf("%sresource/%s/%s", root, folder, filename)
}
func Resource(folder, filename, ext string) string {
	var root string
	if ext == "pdf" || ext == "svg" {
		root = "../"
	}
	return fmt.Sprintf("%sresource/%s/%s", root, folder, filename)
}
// Resource returns a resource filename for testing.