module

package
v2.5.3 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2022 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetermineProjectName added in v2.5.0

func DetermineProjectName(projectName, filePath string) (string, error)

func GoModRootPath

func GoModRootPath(path string) (string, error)

GoModRootPath in case of any directory or file of the project will return root dir of the project where go.mod file is exist

func Name

func Name(goModRootPath string) (string, error)

Name reads module value from ./go.mod

Types

type PathIsNotSetError

type PathIsNotSetError struct{}

PathIsNotSetError will appear if any directory or file is not set for searching go.mod

func (*PathIsNotSetError) Error

func (e *PathIsNotSetError) Error() string

type UndefinedModuleError

type UndefinedModuleError struct{}

UndefinedModuleError will appear on absent go.mod

func (*UndefinedModuleError) Error

func (e *UndefinedModuleError) Error() string

Jump to

Keyboard shortcuts

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