helper

package module
v0.0.0-...-3e593d2 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2018 License: MIT Imports: 11 Imported by: 2

README

helper

Go Report Card

Simple helper package

Sentry support

This package supports sentry.io real time error reporting. More informations: Sentry golang docs

package main

import "github.com/getsentry/raven-go"

func init() {
    // Setup sentry
    raven.SetDSN("https://<key>:<secret>@sentry.io/<project>")
    
    // Setup cronjobs ...
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CertPool

func CertPool(certs []string) *x509.CertPool

func CurrentMinute

func CurrentMinute() int64

func DD

func DD(data interface{})

func Debug

func Debug(data ...interface{})

func Dump

func Dump(data interface{})

func FloatToString

func FloatToString(float float64) string

func IntToString

func IntToString(value int) string

func LoadFile

func LoadFile(file string) string

func Sleep

func Sleep(seconds time.Duration)

func StringToFloat

func StringToFloat(string string, bitSize int) float64

func StringToInt64

func StringToInt64(value string) int64

func ThrowError

func ThrowError(message string)

func TimestampStringToDate

func TimestampStringToDate(timestamp string) time.Time

func ToJSON

func ToJSON(data interface{}) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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