Documentation ¶
Index ¶
- Constants
- func GetRecentDir() (string, error)
- func OpenExplore(path string) error
- func ResolveShortcut(file *os.File) (path string, isdir bool, args string, err error)
- func Run(debug bool) error
- func RunApp(path string) error
- func RunDefaultApp(path string) error
- func RunFF(source *Shortcuts, query string) (string, error)
- func SetupCache(config *Config)
- func WriteCache(path string, s []Shortcut) error
- type Config
- type FileAttributesFlags
- type LinkFlags
- type Origin
- type Shortcut
- func FindFromRecent() (shortcuts []Shortcut, err error)
- func FindFromUser(folders []string) (shortcuts []Shortcut, err error)
- func NewShortcut(path string, tpath string, args string, isdir bool, modtime time.Time, ...) (s Shortcut, err error)
- func NewShortcuts(dir string, origin Origin) ([]Shortcut, error)
- func ReadCache(path string) (s []Shortcut, err error)
- func ReadDir(dir string, org Origin) (shortcuts []Shortcut, err error)
- type Shortcuts
- type WscriptShell
Constants ¶
View Source
const HEADERSIZE = 0x4c
View Source
const LINKFLAGS_OFFSET = 20
Variables ¶
This section is empty.
Functions ¶
func GetRecentDir ¶
func OpenExplore ¶
func ResolveShortcut ¶
func RunDefaultApp ¶
func SetupCache ¶
func SetupCache(config *Config)
func WriteCache ¶
Types ¶
type Config ¶
type Config struct { Folders []string CacheDir string EnableRecent bool EnableUser bool EnableCache bool DefaultQuery string OneShot bool CachePath string }
func LoadConfig ¶
type FileAttributesFlags ¶
type FileAttributesFlags struct { FILE_ATTRIBUTE_READONLY bool FILE_ATTRIBUTE_HIDDEN bool FILE_ATTRIBUTE_SYSTEM bool Reserved1 bool FILE_ATTRIBUTE_DIRECTORY bool FILE_ATTRIBUTE_ARCHIVE bool Reserved2 bool FILE_ATTRIBUTE_NORMAL bool FILE_ATTRIBUTE_TEMPORARY bool FILE_ATTRIBUTE_SPARSE_FILE bool FILE_ATTRIBUTE_REPARSE_POINT bool FILE_ATTRIBUTE_COMPRESSED bool FILE_ATTRIBUTE_OFFLINE bool FILE_ATTRIBUTE_NOT_CONTENT_INDEXED bool FILE_ATTRIBUTE_ENCRYPTED bool }
func NewFileAttributesFlags ¶
func NewFileAttributesFlags(flag uint32) FileAttributesFlags
type LinkFlags ¶
type LinkFlags struct { HasLinkTargetIDList bool HasLinkInfo bool HasName bool HasRelativePath bool HasWorkingDir bool HasArguments bool HasIconLocation bool IsUnicode bool ForceNoLinkInfo bool HasExpString bool RunInSeparateProcess bool Unused1 bool HasDarwinID bool RunAsUser bool HasExpIcon bool NoPidlAlias bool Unused2 bool RunWithShimLayer bool ForceNoLinkTrack bool EnableTargetMetadata bool DisableLinkPathTracking bool DisableKnownFolderTracking bool DisableKnownFolderAlias bool AllowLinkToLink bool UnaliasOnSave bool PreferEnvironmentPath bool KeepLocalIDListForUNCTarget bool }
func NewLinkFlags ¶
type Shortcut ¶
type Shortcut struct { Path string TPath string Args string IsDir bool Parent string Org Origin ModTime time.Time }
func FindFromRecent ¶
func FindFromUser ¶
func NewShortcut ¶
type Shortcuts ¶
type Shortcuts struct {
// contains filtered or unexported fields
}
func FindShortcuts ¶
type WscriptShell ¶
type WscriptShell struct { Shell *ole.IUnknown Wshell *ole.IDispatch }
func NewWscriptShell ¶
func NewWscriptShell() (*WscriptShell, error)
func (*WscriptShell) Release ¶
func (w *WscriptShell) Release()
Click to show internal directories.
Click to hide internal directories.