Files
skillshare/internal/utils/strings.go
T
Willie f5e9d9644e docs: improve README with better structure and content
- 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
2026-01-14 22:12:56 +08:00

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] == '~'
}