gбновление зависимостей, рефакторинг кода, чтобы он выглядел как гошный проект
This commit is contained in:
20
internal/lib/proverb.go
Normal file
20
internal/lib/proverb.go
Normal file
@@ -0,0 +1,20 @@
|
||||
package lib
|
||||
|
||||
import (
|
||||
log "github.com/sirupsen/logrus"
|
||||
)
|
||||
|
||||
// Пословица
|
||||
func proverb() string {
|
||||
var answer = "There is no knowledge that is not power."
|
||||
phrase, err := FetchRandomV(PebbleDB.Proverb.DB, PebbleDB.Proverb.Name)
|
||||
|
||||
if err != nil {
|
||||
log.Errorln(err)
|
||||
return answer
|
||||
}
|
||||
|
||||
return phrase
|
||||
}
|
||||
|
||||
/* vim: set ft=go noet ai ts=4 sw=4 sts=4: */
|
||||
Reference in New Issue
Block a user