-
-
Notifications
You must be signed in to change notification settings - Fork 113
Expand file tree
/
Copy pathmain.go
More file actions
69 lines (61 loc) · 2.83 KB
/
main.go
File metadata and controls
69 lines (61 loc) · 2.83 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/*
Timelinize
Copyright (c) 2013 Matthew Holt
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package main
import (
"embed"
tlcmd "github.com/timelinize/timelinize/cmd"
// plug in data sources
_ "github.com/timelinize/timelinize/datasources/applecontacts"
_ "github.com/timelinize/timelinize/datasources/applephotos"
_ "github.com/timelinize/timelinize/datasources/calendar"
_ "github.com/timelinize/timelinize/datasources/contactlist"
_ "github.com/timelinize/timelinize/datasources/email"
_ "github.com/timelinize/timelinize/datasources/facebook"
_ "github.com/timelinize/timelinize/datasources/firefox"
_ "github.com/timelinize/timelinize/datasources/flighty"
_ "github.com/timelinize/timelinize/datasources/generic"
_ "github.com/timelinize/timelinize/datasources/geojson"
_ "github.com/timelinize/timelinize/datasources/github"
_ "github.com/timelinize/timelinize/datasources/googlelocation"
_ "github.com/timelinize/timelinize/datasources/googlephotos"
_ "github.com/timelinize/timelinize/datasources/googlevoice"
_ "github.com/timelinize/timelinize/datasources/gpx"
_ "github.com/timelinize/timelinize/datasources/icloud"
_ "github.com/timelinize/timelinize/datasources/instagram"
_ "github.com/timelinize/timelinize/datasources/iphone"
_ "github.com/timelinize/timelinize/datasources/kmlgx"
_ "github.com/timelinize/timelinize/datasources/media"
_ "github.com/timelinize/timelinize/datasources/nmea"
_ "github.com/timelinize/timelinize/datasources/smsbackuprestore"
_ "github.com/timelinize/timelinize/datasources/strava"
_ "github.com/timelinize/timelinize/datasources/telegram"
_ "github.com/timelinize/timelinize/datasources/twitter"
_ "github.com/timelinize/timelinize/datasources/vcard"
_ "github.com/timelinize/timelinize/datasources/whatsapp"
)
// Package main is the entry point of the application.
func main() {
tlcmd.Main(embeddedWebsite)
}
// The frontend assets. This will always be embedded into the binary
// even if the config or command line flag says to use a folder on
// disk (usually for dev).
//
// This is only defined here because goembed can't embed something
// from a parent directory, and I just don't care to have the folder
// nested within another folder right now.
//
//go:embed all:frontend
var embeddedWebsite embed.FS