Documentation ¶
Overview ¶
Package ti implements code search tool using SIMD instructions.
Index ¶
Constants ¶
View Source
const ( // UNKNOWN unknown encoding type. UNKNOWN encodingType = iota // ERROR encoding error. ERROR // BINARY binary encoding type. BINARY // ASCII ascii encoding type. ASCII // UTF8 utf-8 encoding type. UTF8 // EUCJP EUC-JP encoding type. EUCJP // SHIFTJIS Shift JIS encoding type. SHIFTJIS )
Variables ¶
View Source
var ( // ConfigHome returns the ti config home directory. ConfigHome = filepath.Join(xdgbasedir.ConfigHome(), "ti") // ConfigFile returns the ti config file path. ConfigFile = filepath.Join(ConfigHome, "config.yml") // IgnoreFile returns the ti ignore file path. IgnoreFile = filepath.Join(ConfigHome, "ignore") )
Functions ¶
func Debug ¶
func Debug(a ...interface{})
Debug prints debug log. Arguments are handled in the manner of fmt.Print.
func Debugf ¶
func Debugf(format string, a ...interface{})
Debugf prints debug log. Arguments are handled in the manner of fmt.Printf.
func Debugln ¶
func Debugln(a ...interface{})
Debugln prints debug log. Arguments are handled in the manner of fmt.Println.
func Dump ¶
func Dump(a ...interface{})
Dump dumps a and prints debug log. Arguments are handled in the manner of fmt.Print.
func FileDescriptor ¶
FileDescriptor opens path and returns the file descriptor if path is non-nil. If path is empty, returns the stdin file descriptor.
Types ¶
type Option ¶
type Option struct { Version bool Profile string Output OutputOption Search SearchOption }
Option represents the_titanium_searcher option.
type OutputOption ¶
type OutputOption struct { EnableColor bool Color struct { Match string Number string Path string } Group bool Null bool Column bool Number bool Context struct { After int Before int Context int } FilesWithMatches bool Count bool Encode string }
OutputOption represents the_titanium_searcher output option.
type SearchOption ¶
type SearchOption struct { Regexp bool IgnoreCase bool SmartCase bool WordRegexp bool Ignore []string VCSIgnore []string GlobalGitIgnore bool TIIgnore bool SkipVCSIgnores bool FilesWithRegexp bool FileSearchRegexp string Depth int Follow bool Hidden bool }
SearchOption represents the_titanium_searcher search option.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.