Added VK part

This commit is contained in:
Artyom Belousov 2019-05-11 14:01:40 +03:00
parent 69d6808cd0
commit 657f967a49
5 changed files with 65 additions and 0 deletions

11
main.go
View file

@ -1,4 +1,15 @@
package main
import (
"github.com/flygrounder/mtg-price-vk/vk"
"github.com/gin-gonic/gin"
"math/rand"
"time"
)
func main() {
rand.Seed(time.Now().UTC().UnixNano())
r := gin.Default()
r.POST("callback/message", vk.HandleMessage)
r.Run()
}