diff options
author | Thomas Voss <mail@thomasvoss.com> | 2025-08-02 18:15:51 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2025-08-02 18:15:51 +0200 |
commit | 18cdaa8b66d795079667ed3b71952eee8ee138e3 (patch) | |
tree | 597cf9e545a0f334c0b4baabfeba5afc8df76981 /src/wikipedia/api.go | |
parent | f2a5ff22e62d669881cecbfa53865f783904a0e1 (diff) |
Add the Wikipedia module
Diffstat (limited to 'src/wikipedia/api.go')
-rw-r--r-- | src/wikipedia/api.go | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/wikipedia/api.go b/src/wikipedia/api.go new file mode 100644 index 0000000..fb06518 --- /dev/null +++ b/src/wikipedia/api.go @@ -0,0 +1,17 @@ +package wikipedia + +type APIResponse struct { + Continue *struct { + Continue string `json:"continue"` + LlContinue string `json:"llcontinue"` + } `json:"continue"` + Query struct { + Pages []struct { + Title string `json:"title"` + LangLinks *[]struct { + Lang string `json:"lang"` + Title string `json:"title"` + } `json:"langlinks"` + } `json:"pages"` + } `json:"query"` +} |