Skip to content

Instantly share code, notes, and snippets.

@xNok
Last active April 8, 2021 01:42
Show Gist options
  • Save xNok/1557ba9dba3428d5818925b4cf598d60 to your computer and use it in GitHub Desktop.
Save xNok/1557ba9dba3428d5818925b4cf598d60 to your computer and use it in GitHub Desktop.
appHomeViews.go
package views
import (
"bytes"
"embed"
"html/template"
"io/ioutil"
"log"
"encoding/json"
"github.com/slack-go/slack"
)
const (
// Define Action_id as constant so we can refet to them in the controller
AddStockieNoteActionID = "add_note"
ModalDescriptionBlockID = "note_description"
ModalDescriptionActionID = "content"
ModalColorBlockID = "note_color"
ModalColorActionID = "color"
)
type StickieNote struct {
Description string
Color string
Timestamp string
}
//go:embed appHomeViewsAssets/*
var appHomeAssets embed.FS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment