mirror of
https://github.com/fiatjaf/nak.git
synced 2025-12-13 10:38:49 +00:00
fs: creating articles (and presumably wikis); fixes and improvements to editing articles.
This commit is contained in:
@@ -2,6 +2,17 @@ package nostrfs
|
||||
|
||||
import "strconv"
|
||||
|
||||
func kindToExtension(kind int) string {
|
||||
switch kind {
|
||||
case 30023:
|
||||
return "md"
|
||||
case 30818:
|
||||
return "adoc"
|
||||
default:
|
||||
return "txt"
|
||||
}
|
||||
}
|
||||
|
||||
func hexToUint64(hexStr string) uint64 {
|
||||
v, _ := strconv.ParseUint(hexStr[16:32], 16, 64)
|
||||
return v
|
||||
|
||||
Reference in New Issue
Block a user