forked from jeroenpardon/sui
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathmodel.go
More file actions
26 lines (23 loc) · 741 Bytes
/
model.go
File metadata and controls
26 lines (23 loc) · 741 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package main
import (
"github.com/willfantom/sui/bookmarks"
"github.com/willfantom/sui/providers"
"github.com/willfantom/sui/search"
)
// IndexData is the data to be used in the template file
type IndexData struct {
AppTitle string
AppProviders map[string]*providers.AppProvider
Bookmarks map[string]*[]bookmarks.Bookmark
SearchEngines map[string]*search.SearchEngine
}
// NewIndexData creates a new IndexData...
// Creates the required maps
// Returns a pointer to the the created indexdata
func NewIndexData() *IndexData {
return &IndexData{
AppProviders: make(map[string]*providers.AppProvider),
Bookmarks: make(map[string]*[]bookmarks.Bookmark),
SearchEngines: make(map[string]*search.SearchEngine),
}
}