golang 模板中的 Slack 提及
Slack mentions in golang templates
我正在使用go gitlab package to fetch users from gitlab. While trying to tag a person in slack in my go template using the following syntax @{{.Name}}
, Slack receives a string @Foo Bar
, but the person is not actually being tagged. Are there any workarounds available? Here's the screenshot of slack output
根据问题中提到的细节。
您正在使用 @{{.Name}}
。
@SlackId
应该用于标记用户而不是 @UserName
要标记用户以进行提及,您需要他们的 Slack ID
我正在使用go gitlab package to fetch users from gitlab. While trying to tag a person in slack in my go template using the following syntax @{{.Name}}
, Slack receives a string @Foo Bar
, but the person is not actually being tagged. Are there any workarounds available? Here's the screenshot of slack output
根据问题中提到的细节。
您正在使用 @{{.Name}}
。
@SlackId
应该用于标记用户而不是 @UserName
要标记用户以进行提及,您需要他们的 Slack ID