util

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2019 License: Apache-2.0 Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DirToGoPkg

func DirToGoPkg(dir string) (pkg string, err error)

DirToGoPkg returns the Gopkg for the given directory if it exists under a GOPATH otherwise returns error. For example, /Users/x/go/src/github.com/y/z ==> github.com/y/z

func GetDomainFromProject

func GetDomainFromProject(rootPath string) string

GetDomainFromProject get domain information from the PROJECT file under the path.

func IsGoSrcPath

func IsGoSrcPath(filePath string) bool

IsGoSrcPath validate if given path is of path $GOPATH/src.

func IsUnderGoSrcPath

func IsUnderGoSrcPath(filePath string) bool

IsUnderGoSrcPath validate if given path is under path $GOPATH/src.

func PathHasProjectFile

func PathHasProjectFile(filePath string) bool

PathHasProjectFile validate if PROJECT file exists under the path.

Types

This section is empty.

Jump to

Keyboard shortcuts

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