Update user agent (#5)
Signed-off-by: jolheiser <john.olheiser@gmail.com> Reviewed-on: #5 Co-authored-by: jolheiser <john.olheiser@gmail.com> Co-committed-by: jolheiser <john.olheiser@gmail.com>pull/8/head
parent
514c18ffa2
commit
499bb25f8f
|
@ -41,7 +41,7 @@ type SubReddit struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *RedditConfig) UserAgent() string {
|
func (r *RedditConfig) UserAgent() string {
|
||||||
return fmt.Sprintf("%s/%s by /u/%s", r.AppName, r.Version, r.Username)
|
return fmt.Sprintf("go:%s:%s (by /u/%s)", r.AppName, r.Version, r.Username)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *RedditConfig) SubRedditNames() []string {
|
func (r *RedditConfig) SubRedditNames() []string {
|
||||||
|
|
Loading…
Reference in New Issue