Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service interface {
// DeleteIfExists deletes a file if it exists, returns (deleted, error)
DeleteIfExists(path string) (bool, error)
// IsCommandAvailable checks if a command is available in PATH
IsCommandAvailable(name string) bool
// InstallSwag installs the swag command for swagger generation
InstallSwag() error
// FindMainFile finds the main.go file in common locations
FindMainFile() string
}
Service handles file system operations
func ProvideFileService ¶
func ProvideFileService() Service
ProvideFileService creates a new file service @Provider
Click to show internal directories.
Click to hide internal directories.