| 12345678910111213141516171819202122232425262728 |
- //go:build !windows
- // ============================================================================
- // tagservice_other.go — 文件标签存储(非 Windows 桩)
- //
- // 文件标签功能仅 Windows 使用(资源管理器右键菜单 + MSAA 悬停)。非 Windows
- // 平台提供空实现保证编译通过:openTagDB 返回错误,startTagContextHook 为空。
- // ============================================================================
- package main
- import (
- "database/sql"
- "errors"
- )
- // openTagDB 非 Windows 平台不可用,返回错误(功能仅限 Windows)。
- func openTagDB(dbPath string) (*sql.DB, error) {
- return nil, errors.New("文件标签功能仅支持 Windows")
- }
- // startTagContextHook 非 Windows 平台为空实现。
- func startTagContextHook() {}
- // stopTagContextHook 非 Windows 平台为空实现。
- func stopTagContextHook() {}
- // setTagHookCachedPath 非 Windows 平台为空实现。
- func setTagHookCachedPath(path string) {}
|