Documentation
¶
Index ¶
- Constants
- type Handler
- func (g *Handler) AddToGitignore(gitRoot, filePath string) error
- func (g *Handler) FindGitRoot(startPath string) (string, bool)
- func (g *Handler) IsFileIgnored(gitignoreContent, filePath, gitRoot string) bool
- func (g *Handler) IsGitRepository(path string) bool
- func (g *Handler) ReadFile(path string) (string, error)
- func (g *Handler) ReadGitignore(gitRoot string) (string, error)
- func (g *Handler) WriteFile(path, content string) error
Constants ¶
View Source
const (
FilePerms = 0600
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct{}
func NewHandler ¶
func NewHandler() *Handler
func (*Handler) AddToGitignore ¶
func (*Handler) IsFileIgnored ¶
func (*Handler) IsGitRepository ¶
Click to show internal directories.
Click to hide internal directories.