Skip to content
This repository has been archived by the owner on Mar 18, 2021. It is now read-only.

Latest commit

 

History

History
28 lines (20 loc) · 679 Bytes

README.md

File metadata and controls

28 lines (20 loc) · 679 Bytes

slack-md

GoDoc

Golang Slack Markdown struct serializer based on reflection.

The struct you give us

type MyUserAction struct {
	URL string

	User            *MyUser
	NotSoUsefulInfo string `slack_md:"-"`
}

type MyUser struct {
	UserID      string
	SomeUserKey string `slack_md:"obfuscate"`
}

How it will show up on your Slack channel

  • Field names as bold text, properly idented
  • Fields tagged with - ignored
  • Fields tagged with obfuscate showing just last chars
  • Fields re-implementing Marshaler having their custom serializing printed