👥 Added patrons list in log

This commit is contained in:
Maxim Lebedev 2019-05-27 14:40:58 +05:00
parent 6271bd7f21
commit 236e5ee8e8
No known key found for this signature in database
GPG Key ID: F8978F46FF0FFA4F
1 changed files with 17 additions and 0 deletions

17
patrons.go Normal file
View File

@ -0,0 +1,17 @@
package oembed
import (
"log"
"sort"
"strings"
)
func init() {
patrons := []string{"Aurielb", "MoD21k", "Yami Odymel"}
sort.Strings(patrons)
log.Print(
"Support toby3d on Patreon: https://patreon.com/bePatron?c=243288", "\n",
"The current version of oembed is sponsored by: ",
strings.Join(patrons[:len(patrons)-1], ", "), " and ", patrons[len(patrons)-1],
)
}