go/src/cmd/go/internal/workcmd/use.go

var cmdUse

var useR

func init() {}

func runUse(ctx context.Context, cmd *base.Command, args []string) {}

func workUse(ctx context.Context, gowork string, wf *modfile.WorkFile, args []string) {}

// pathRel returns the absolute and canonical forms of dir for use in a
// go.work file located in directory workDir.
//
// If dir is relative, it is interpreted relative to base.Cwd()
// and its canonical form is relative to workDir if possible.
// If dir is absolute or cannot be made relative to workDir,
// its canonical form is absolute.
//
// Canonical absolute paths are clean.
// Canonical relative paths are clean and slash-separated.
func pathRel(workDir, dir string) (abs, canonical string) {}