@ -8,6 +8,7 @@ import (
"io"
"os"
"github.com/gin-gonic/gin/binding"
"github.com/mattn/go-colorable"
)
@ -51,6 +52,10 @@ func SetMode(value string) {
modeName = value
}
func DisableBindValidation() {
binding.Validator = nil
func Mode() string {
return modeName
The note is not visible to the blocked user.