implemented http server

This commit is contained in:
Altair-sh
2026-11-02 21:47:34 +01:00
parent e0cf8a12a9
commit bac4ccb34e
14 changed files with 775 additions and 178 deletions
+6
View File
@@ -4,6 +4,7 @@ import (
"io"
"slices"
"strconv"
"time"
"unicode/utf8"
)
@@ -65,6 +66,11 @@ func (b *StringBuilder) AddBool(v bool) *StringBuilder {
return b
}
func (b *StringBuilder) AddT(v time.Time, fmt string) *StringBuilder {
b.Buf = v.AppendFormat(b.Buf, fmt)
return b
}
// numberBase: 2 <= base <= 36
func (b *StringBuilder) AddIExt(v int64, numberBase int) *StringBuilder {
b.Buf = strconv.AppendInt(b.Buf, v, numberBase)