feat: add BVK exchange library

This commit is contained in:
Георгий
2026-07-12 20:44:44 +03:00
parent 3a1c524eb2
commit 0ff0905a9c
15 changed files with 627 additions and 0 deletions

19
logger.go Normal file
View File

@@ -0,0 +1,19 @@
package mila
import "log/slog"
type Option func(*Handler)
func WithLogger(logger *slog.Logger) Option {
return func(h *Handler) {
if logger != nil {
h.logger = logger
}
}
}
func WithOnSet(fn func(ContentState)) Option {
return func(h *Handler) {
h.onSet = fn
}
}