file

package
v1.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 27, 2025 License: MIT Imports: 2 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL