Versions in this module Expand all Collapse all v0 v0.1.0 Dec 14, 2024 Changes in this version + const DependencyManagerComposer + const DependencyManagerGoMod + const DependencyManagerNPM + const DependencyManagerNone + const LanguageNameGo + const LanguageNameJS + const LanguageNameNone + const LanguageNamePHP + var ErrDependencyFilesNotFound = errors.New("dependency files not found") + func ExploreDirectory(files DirectoryFileIterator) (map[DependencyManager]*File, error) + func ScanProjectDir(dir string) (map[DependencyManager]*File, error) + type Dependency struct + Name string + Version Version + type DependencyManager string + type DirectoryFileIterator interface + Next func() (string, error) + Read func(filepath string) ([]byte, error) + type File struct + Dependencies []*Dependency + DependencyManager DependencyManager + Frameworks []*Framework + Language Language + Name string + Path string + func Explore(path string, explorer FileExplorer) (*File, error) + func ExploreComposerJSON(file []byte) (*File, error) + func ExploreComposerLock(file []byte) (*File, error) + func ExploreGoMod(file []byte) (*File, error) + func ExplorePackageJSON(file []byte) (*File, error) + func ExplorePackageLockJSON(file []byte) (*File, error) + func Guess(path string) (*File, error) + type FileExplorer func(file []byte) (*File, error) + type Framework struct + Name FrameworkName + Version Version + func (f *Framework) String() string + type FrameworkName string + const FrameworkNameFiber + const FrameworkNameGin + const FrameworkNameLaravel + const FrameworkNameReact + const FrameworkNameSymfony + const FrameworkNameVueJS + type Language struct + Name LanguageName + Version *Version + type LanguageName string + type Version struct + Full string + func (v *Version) String() string