blob: 951a1b2aa5ab478700c70058a4d94bfb269b5bbf (
plain)
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
|
module Data
using Downloads: download
using TOML
import Base: getindex, setindex
struct Source
end
struct Index
filename::String
sources::Dict{String, Source}
end
function Index(filename::String)::Index
sources = Dict{String, Source}()
return Index(filename, sources)
end
function save(index::Index)
end
function getindex(index::Index, k::String)::Source
index.sources[k]
end
function setindex!(index::Index, k::String, s::Source)
index.sources[k] = s
end
end
|