1
0

tagservice_other.go 978 B

12345678910111213141516171819202122232425262728
  1. //go:build !windows
  2. // ============================================================================
  3. // tagservice_other.go — 文件标签存储(非 Windows 桩)
  4. //
  5. // 文件标签功能仅 Windows 使用(资源管理器右键菜单 + MSAA 悬停)。非 Windows
  6. // 平台提供空实现保证编译通过:openTagDB 返回错误,startTagContextHook 为空。
  7. // ============================================================================
  8. package main
  9. import (
  10. "database/sql"
  11. "errors"
  12. )
  13. // openTagDB 非 Windows 平台不可用,返回错误(功能仅限 Windows)。
  14. func openTagDB(dbPath string) (*sql.DB, error) {
  15. return nil, errors.New("文件标签功能仅支持 Windows")
  16. }
  17. // startTagContextHook 非 Windows 平台为空实现。
  18. func startTagContextHook() {}
  19. // stopTagContextHook 非 Windows 平台为空实现。
  20. func stopTagContextHook() {}
  21. // setTagHookCachedPath 非 Windows 平台为空实现。
  22. func setTagHookCachedPath(path string) {}