Move all Doodle source code into the src/ subpackage and move the publicly shareable stuff into lib/, for example lib/ui and lib/render. This cleans up the git root and helps make the Doodle UI library more easily publishable as a separate open source project. Currently both lib/ui and lib/render import one or two things from doodle/src that need to be broken apart.
17 行
386 B
Go
17 行
386 B
Go
// Package dummy implements a dummy doodads.Drawing.
|
|
package dummy
|
|
|
|
import "git.kirsle.net/apps/doodle/src/doodads"
|
|
|
|
// Drawing is a dummy doodads.Drawing that has no data.
|
|
type Drawing struct {
|
|
doodads.Drawing
|
|
}
|
|
|
|
// NewDrawing creates a new dummy drawing.
|
|
func NewDrawing(id string, doodad *doodads.Doodad) *Drawing {
|
|
return &Drawing{
|
|
Drawing: doodads.NewDrawing(id, doodad),
|
|
}
|
|
}
|