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

Golang Slack Markdown struct serializer based on reflection

License

Notifications You must be signed in to change notification settings

inloco/slack-md

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Golang Slack Markdown struct serializer based on reflection

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages