package main import ( "strings" ) const dotCharacter = 46 func isHidden(path string) bool { if path[0] == dotCharacter || strings.Contains(path, "/.") { return true } return false }