Help us shape the future of Go! Take the 2026 Go Developer Survey

codeintel

package
v0.0.0-...-a35c2e7 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InferCommit

func InferCommit() (string, error)

InferCommit gets a 40-character rev hash from the git clone enclosing the working dir.

func InferRepo

func InferRepo() (string, error)

InferRepo gets a Sourcegraph-friendly repo name from the git clone enclosing the working dir.

func InferRoot

func InferRoot(file string) (string, error)

InferRoot gets the path relative to the root of the git clone enclosing the given file path.

func SanitizeRoot

func SanitizeRoot(root string) string

SanitizeRoot removes redundant paths from the given root and replaces references to the root of th repo with an empty string.

func UploadIndex

func UploadIndex(opts UploadIndexOpts) (string, error)

Types

type UploadIndexOpts

type UploadIndexOpts = codeintelutils.UploadIndexOpts

Jump to

Keyboard shortcuts

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