goutil

package
v0.0.0-...-2c87074 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Unlicense Imports: 5 Imported by: 9

Documentation

Overview

Package goutil implements some golang relevant utility functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AbsImpPath

func AbsImpPath(relImpPath string) (absImpPath string, err error)

AbsImpPath tries to locate the absolute import path based on the provided import path.

func RelImpPath

func RelImpPath(path string) (relImpPath string, err error)

RelImpPath tries to locate the relative import path of the provided path. A pre-condition is that the given path resides within GOPATH.

func SrcDir

func SrcDir(dir string) (absDir string, err error)

SrcDir tries to locate dir in GOPATH/src/ or GOROOT/src/pkg/ and returns its full path. GOPATH may contain a list of paths.

Types

This section is empty.

Jump to

Keyboard shortcuts

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