INNER CODE UNIT · Go
oneWeek
nisrulz/app-privacy-policy-generator · tools/reviews-page-generator/main.go:27
oneWeek = 7 * 24 * time.Hour
)
var (
baseDir, jsonDir, imgsDir string
tmplPath, outPath, dataPath, pubDir string
imageURLRe = regexp.MustCompile(`https?://[^\s]+\.(?:png|jpg|jpeg|gif)`)
ghAssetRe = regexp.MustCompile(`https://github\.com/user-attachments/assets/[a-f0-9-]+`)
commentsRe = regexp.MustCompile(`\{\{#comments\}\}[\s\S]*?\{\{/comments\}\}`)
imageMap map[string]string
)
type ghUser struct {
Login string `json:"login"`
AvatarURL string `json:"avatar_url"`
}