add missing files

This commit is contained in:
Yasuhiro Matsumoto
2026-01-19 00:50:25 +09:00
parent 0e6a6d7506
commit b2d5aa9bc2
9 changed files with 1522 additions and 0 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"
}
}