util

package
v0.0.0-...-e9a2133 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2021 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(message string)

Debug logs a message with this log level. The DEBUG environment variable must be non-empty in order for messages to show.

func Info

func Info(message string)

Info logs a message with this log level

func LoadEnv

func LoadEnv()

LoadEnv loads environment variables

func LogClose

func LogClose()

LogClose closes the log file.

func LogOpen

func LogOpen()

LogOpen opens the log file for writing.

func RateNormal

func RateNormal(positiveRatings, totalRatings int) float32

RateNormal rates a suggestion normally

func RateWilson

func RateWilson(positiveRatings, totalRatings float64) float64

RateWilson rates a suggestion using Wilson score magic

func Warn

func Warn(message string)

Warn logs a message with this log level.

Types

This section is empty.

Jump to

Keyboard shortcuts

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