Documentation
¶
Index ¶
- func FilePathsToSuggests(soisDir string, filePaths []string, word string) []prompt.Suggest
- func FilePathsToSuggestsNoEx(soisDir string, filePaths []string, word string) []prompt.Suggest
- func IsOptionWord(d prompt.Document) bool
- func ListDirsRecursively(dir string, b *model.Bucket, lastSlash bool) ([]string, error)
- func ListFileDirs(dir string, addDir, dirLastSlash bool) ([]string, error)
- func ListFilesRecursively(dir string) ([]string, error)
- func ParseTitleByURL(url string) (string, bool, error)
- type StringArray
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilePathsToSuggests ¶
FilePathsToSuggests は引数のfilePath配列を元に Suggestの配列を生成します
func FilePathsToSuggestsNoEx ¶
func IsOptionWord ¶
func IsOptionWord(d prompt.Document) bool
func ListDirsRecursively ¶
ListDirsRecursively は引数のdir配下を再帰的に走査してDirectoryのPathを収集します
func ListFilesRecursively ¶
ListFilesRecursively は引数のdir配下を再帰的に走査してFileのPathを収集します
Types ¶
type StringArray ¶
type StringArray []string
StringArray is for flag package
see: flags_test.go for example
var tags StringArray func main() { flag.Var(&tags, "t", "tag of the uri") fmt.Printf("tags=%v", tags) }
func (*StringArray) Set ¶
func (s *StringArray) Set(v string) error
Example ¶
var tags StringArray flag.Var(&tags, "t", "tag of the uri")
Output:
func (*StringArray) String ¶
func (s *StringArray) String() string
Click to show internal directories.
Click to hide internal directories.