The very basic client app, not adapted for mobiles.
Some checks failed
Linting and tests / Linting (push) Failing after 5s
Linting and tests / Tests (push) Failing after 4s

This commit is contained in:
2025-09-10 19:34:49 +05:00
parent b65b8a9e72
commit e3b9c9ae40
50 changed files with 2816 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
package helpers
import "strings"
// IsConstraintFailed возвращает true если ограничение по индексу было нарушено.
func IsConstraintFailed(err error) bool {
return strings.Contains(err.Error(), "constraint failed")
}
// IsEmptySliceForIn возвращает true если sqlx вернул ошибку подготовки слайла параметров в sqlx.In.
func IsEmptySliceForIn(err error) bool {
return strings.Contains(err.Error(), "empty slice passed to 'in' query")
}