Add new toppingss.
git clone https://github.com/Doarakko/bigburger
cd bigburger
Width is 218
pixels and format is PNG
.
More than 218 pixels will be cut.
Set to public/<image file name>.png
.
statik -src=public
Use local statik
.
import (
// omit
_ "./statik"
//_ "github.com/Doarakko/bigburger/statik"
// omit
)
Change array size.
var toppings [n]Topping
Add some description about new topping.
Image file name and toppings[i].Name
is same.
toppings[i].Count
is default value.
func init() {
// omit
toppings[6].Name = "<image file name>"
toppings[6].Count = 0
toppings[6].Option = "<option initial>"
// omit
}
go run main.go -<option initial> 3