make cgofuse the default for "fs" only on windows. on linux and mac it needs a "cgofuse" build tag.

This commit is contained in:
fiatjaf
2026-01-18 10:51:12 -03:00
parent cb2247c9da
commit c0b85af734
15 changed files with 1719 additions and 61 deletions

16
nostrfs/helpers.go Normal file
View File

@@ -0,0 +1,16 @@
package nostrfs
import (
"fiatjaf.com/nostr"
)
func kindToExtension(kind nostr.Kind) string {
switch kind {
case 30023:
return "md"
case 30818:
return "adoc"
default:
return "txt"
}
}