25 lines
559 B
Go
25 lines
559 B
Go
|
// i2_bot – Instinct PokememBro Bot
|
|||
|
// Copyright (c) 2017 Vladimir "fat0troll" Hodakov
|
|||
|
|
|||
|
package pokedexer
|
|||
|
|
|||
|
import (
|
|||
|
// local
|
|||
|
"lab.pztrn.name/fat0troll/i2_bot/lib/appcontext"
|
|||
|
"lab.pztrn.name/fat0troll/i2_bot/lib/pokedexer/pokedexerinterface"
|
|||
|
)
|
|||
|
|
|||
|
var (
|
|||
|
c *appcontext.Context
|
|||
|
)
|
|||
|
|
|||
|
// Pokedexer is a function-handling struct for package pokedexer
|
|||
|
type Pokedexer struct{}
|
|||
|
|
|||
|
// New is an initialization function for appcontext
|
|||
|
func New(ac *appcontext.Context) {
|
|||
|
c = ac
|
|||
|
p := &Pokedexer{}
|
|||
|
c.RegisterPokedexerInterface(pokedexerinterface.PokedexerInterface(p))
|
|||
|
}
|