qoinhelper

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2021 License: MIT Imports: 9 Imported by: 0

README

qoin-go-helper

Qoin Golang Helper

Go Helper

logo

Introduction

This repo for Helper services.

Installation

via SSH
git clone [email protected]:loyaltoid/go-skeleton-manager.git
via go modules
go mod install github.com/Qoin-Digital-Indonesia/qoin-go-helper

Usage

qoinhelper.LoggerInfo("This is logger info")

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Validates *validator.Validate

Functions

func Bind

func Bind(form interface{}, structs interface{}) interface{}

func ClientIP

func ClientIP(c echo.Context) string

func DateNil

func DateNil(dt interface{}) interface{}

func DateParse

func DateParse(d interface{}, format string) *time.Time

func InArray

func InArray(val interface{}, arrays interface{}) bool

func JsonDecode

func JsonDecode(data interface{}) (maps map[string]interface{}, err error)

func JsonEncode

func JsonEncode(data interface{}) string

func LoggerDebug

func LoggerDebug(msg string)

func LoggerError

func LoggerError(err error)

func LoggerInfo

func LoggerInfo(message string)

func LoggerSuccess

func LoggerSuccess(message string)

func LoggerWarning

func LoggerWarning(message string)

func RandStringBytes

func RandStringBytes(n int) string

func UUID

func UUID() string

func Validate

func Validate(c echo.Context, i interface{}) (interface{}, error)

func ValidateRPC

func ValidateRPC(i interface{}) (interface{}, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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