Exemplo n.º 1
0
func (self *Configuration) Init() error {
	c := model.NewColor(self.DummyImageColor)
	self.dummyImageURL = ColoredImageDataURL(c.RGBA())
	view.Config.Form.DefaultFieldControllers = append(view.Config.Form.DefaultFieldControllers,
		ImageRefController{},
		BlobRefController{},
	)
	return nil
}
Exemplo n.º 2
0
func (self *Configuration) Init() error {
	c := model.NewColor(self.DummyImageColor)
	self.dummyImageURL = ColoredImageDataURL(c.RGBA())
	return nil
}