mirror of
https://github.com/runkids/skillshare.git
synced 2026-11-19 02:17:09 +00:00
- Add badges (License, Go version, Release) - Add ASCII flow diagram showing architecture - Add Table of Contents for navigation - Add "Why skillshare?" comparison table - Add Use Cases section (Individual, Team, Open Source) - Add FAQ section with common questions - Add Contributing guide with development setup - Reorganize sections for better readability
14 lines
423 B
Go
14 lines
423 B
Go
package utils
|
|
|
|
// IsHidden checks if a file/directory name starts with a dot.
|
|
// Returns false for empty strings to prevent panic on empty names.
|
|
func IsHidden(name string) bool {
|
|
return len(name) > 0 && name[0] == '.'
|
|
}
|
|
|
|
// HasTildePrefix checks if a path starts with ~.
|
|
// Returns false for empty strings to prevent panic on empty paths.
|
|
func HasTildePrefix(path string) bool {
|
|
return len(path) > 0 && path[0] == '~'
|
|
}
|