Documentation ¶
Index ¶
- func Allocate[T any](val T) *T
- func CalculateGridSize(cardsNumber int) (cols, rows int)
- func CardIdToPageCoordinates(id, columns int) (column, row int)
- func CompareMaps(one, two map[string]string) bool
- func NameToID(in string) string
- func Sort[T ISortable](items *[]T, field string)
- type ISortable
- type QuotedString
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculateGridSize ¶
Allows you to find the minimum image size for all cards on the page
func CardIdToPageCoordinates ¶
Allows you to calculate the position of the card on the page by its identifier
func CompareMaps ¶
Types ¶
type QuotedString ¶
type QuotedString struct {
// contains filtered or unexported fields
}
func NewQuotedString ¶
func NewQuotedString(str string) QuotedString
func (*QuotedString) MarshalJSON ¶
func (s *QuotedString) MarshalJSON() ([]byte, error)
func (*QuotedString) SetQuotedOutput ¶
func (s *QuotedString) SetQuotedOutput()
func (*QuotedString) SetRawOutput ¶
func (s *QuotedString) SetRawOutput()
func (QuotedString) String ¶
func (s QuotedString) String() string
func (*QuotedString) UnmarshalJSON ¶
func (s *QuotedString) UnmarshalJSON(data []byte) error
Click to show internal directories.
Click to hide internal directories.