CommentURL get comment url
(permalink int, siteUrl, questionID, title, answerID, commentID string)
| 53 | |
| 54 | // CommentURL get comment url |
| 55 | func CommentURL(permalink int, siteUrl, questionID, title, answerID, commentID string) string { |
| 56 | if len(answerID) > 0 { |
| 57 | return AnswerURL(permalink, siteUrl, questionID, answerID, title) + "?commentId=" + commentID |
| 58 | } |
| 59 | return QuestionURL(permalink, siteUrl, questionID, title) + "?commentId=" + commentID |
| 60 | } |
| 61 | |
| 62 | // UserURL get user url |
| 63 | func UserURL(siteUrl, username string) string { |
no test coverage detected