Skip to content

sunmyinf/go-workplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-workplace

go-workplace provides packages for workplace app.

Usage

package main

import (
  "log"

  "github.com/sunmyinf/go-workplace/webhook"
  "github.com/sunmyinf/go-workplace/decode"
)

func main() {
  server := webhook.NewServer("App Secret", "Access Token", "Verify Token")
  server.HandleObjectFunc(decode.ObjectPage, func(req decode.Request) error {
    log.Println("hello page!")
    return nil
  })
  if err := server.ListenAndServe(); err != nil {
    log.Printf("failed to launch server: %v\n", err)
  }
}

About

golang implementation for workplace app

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages