ketchup

module
v0.0.0-...-937ee59 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 6, 2018 License: MIT

README

ketchup

random golang utilities

package simpay // import "."

var InvalidNumber = errors.New("invalid number")
func Check(auth Auth, service_id, number, code string) (price int, err error)
func IsCodeNotFoundErr(err error) bool
func IsCodeUsedErr(err error) bool
func NumberToPrice(number string) (price int, err error)
type Auth struct{ ... }
type Error struct{ ... }
package dbutils // import "."

//CheckAffected checks if result.RowsAffected() are equal to the expected numeber
func CheckAffected(result sql.Result, sqlError error, expected int64) error

//IsMySQLDuplicate checks if mysql error is ER_DUP_ENTRY mysql error
func IsMySQLDuplicate(err error) bool
package jsonutils // import "."

type Time struct{ ... }
    func New(t time.Time) *Time

Directories

Path Synopsis
Package permissions provides simple yet powerful interface to managing permissions author: Karol Piłat <karol@vitresoft.com>
Package permissions provides simple yet powerful interface to managing permissions author: Karol Piłat <karol@vitresoft.com>
sms
Package stopwatch provides simple way to measure time between certain calls sw := stopwatch.New() funcToMeasure() sw.Lap("my func") nextFuncToMeasure() sw.Lap("next func") go sendToInflux(sw.Laps())
Package stopwatch provides simple way to measure time between certain calls sw := stopwatch.New() funcToMeasure() sw.Lap("my func") nextFuncToMeasure() sw.Lap("next func") go sendToInflux(sw.Laps())
Package timerange provides simple way to store time ranges - not working yet taken from https://gist.github.com/smagch/d2a55c60bbd76930c79f
Package timerange provides simple way to store time ranges - not working yet taken from https://gist.github.com/smagch/d2a55c60bbd76930c79f

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL