resolver

package
v0.0.0-...-e7971d2 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDocumentWithPathResolver

func NewDocumentWithPathResolver(options ...ResolveOption) model.NewDocumentOption

func ResolveFileGlob

func ResolveFileGlob(config FileGlobConfig) ([]string, error)

func ResolveFileGlobFullpath

func ResolveFileGlobFullpath(config FileGlobConfig) ([]string, error)

func ResolveFileWithBasename

func ResolveFileWithBasename(startDir, name string) (filename string, exist bool)

If startDir is empty string, resolve from current working directory.

Types

type FileGlobConfig

type FileGlobConfig struct {
	Rootdir    string   `json:"root"`
	Rules      []string `json:"rules"`
	IgnoreRule []string `json:"ignores"`
}

type ResolveOption

type ResolveOption struct {
	Lang    []string
	Command string
	CmdOpt  string
	Args    []string
}

Jump to

Keyboard shortcuts

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