fabiothiroki/go-twitter-bot

View on GitHub
internal/postformatter/post_formatter.go

Summary

Maintainability
A
0 mins
Test Coverage
package postformatter

import "github.com/fabiothiroki/go-twitter-bot/internal/database"

const hashTags = " #prodmgmt #productmanagement"

// Format returns the final text to be tweeted
func Format(quote *database.Quote) string {
    return quote.Text + " — " + quote.Author + hashTags
}