Add fiber http backend

This commit is contained in:
2024-10-27 23:15:38 +01:00
parent a74f722c58
commit 7903bb7830
5 changed files with 92 additions and 22 deletions

View File

@@ -2,6 +2,7 @@ package main
import (
"fmt"
"log"
"reflect"
"regexp"
"strings"
@@ -40,6 +41,7 @@ func BuildWhereQuery(params interface{}) string {
var associationRe = regexp.MustCompile(`r:(\w+)(?:\(([^)]+)\))?`)
func ParseNote(data string) (NoteData, error) {
log.Printf("Parsing note: %q", data)
res := NoteData{}
lines := strings.Split(data, "\n")
note := []string{}