Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AbsolutePath ¶
AbsolutePath checks if filePath exists in module and provides absolute path to the file For example: Module.Root - /home/<some-home>/go/src/github.com/bincooo/go-annotation Module.Files - [internal/module/lookup.go...] filePath - github.com/bincooo/go-annotation/internal/module/module.go return - /home/<some-home>/go/src/github.com/bincooo/go-annotation/internal/module/module.go
func FilesInDir ¶
FilesInDir finds all files in a particular directory for Module For example: Module.Root - /home/<some-home>/go/src/github.com/bincooo/go-annotation Module.Files - [internal/lookup/imports.go...] dir - internal/lookup Then the function returns all files in internal/lookup dir with no prefixes:
"internal/lookup/imports.go" "internal/lookup/imports_test.go" "internal/lookup/types.go" "internal/lookup/types_test.go"
func FilesInPackage ¶
FilesInPackage finds all files in importPath for Module For example: Module.Root - /home/<some-home>/go/src/github.com/bincooo/go-annotation Module.Files - [internal/module/lookup.go...] importPath - github.com/bincooo/go-annotation/internal/module Then the function returns all files in internal/module dir with package prefix:
"github.com/bincooo/go-annotation/internal/module/load.go" "github.com/bincooo/go-annotation/internal/module/interface.go" "github.com/bincooo/go-annotation/internal/module/interface_test.go" "github.com/bincooo/go-annotation/internal/module/lookup.go" "github.com/bincooo/go-annotation/internal/module/module.go"