paths

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 1 more Imports: 5 Imported by: 0

Documentation

Overview

Package paths provides functionality related to file paths within the project.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpandSearch

func ExpandSearch(protoTRPCPath string) []string

ExpandSearch expands search path around trpc_options.proto path.

func ExpandTRPCSearch

func ExpandTRPCSearch(installPath string) []string

ExpandTRPCSearch expands search path around installation path (typically ~/.trpc-cmdline-assets).

func Locate

func Locate(name string, search ...string) (string, error)

Locate locates the directory of file name. It first searches in dirs and then in the template installation directory. name can be a regular file or directory.

Types

This section is empty.

Jump to

Keyboard shortcuts

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