From 8fdf7c190af22db00ff4af360f1dedc933396f6f Mon Sep 17 00:00:00 2001 From: github_username_here Date: Sat, 28 Feb 2026 17:21:56 +0100 Subject: [PATCH] refactoring project structure --- .gitignore | 1 + main.go => cmd/main.go | 0 fetchhtml.go => internal/fetcher/fetchhtml.go | 0 .../fetcher/textmanipulation.go | 0 internal/models/yaml.go | 12 ++++++++++++ 5 files changed, 13 insertions(+) create mode 100644 .gitignore rename main.go => cmd/main.go (100%) rename fetchhtml.go => internal/fetcher/fetchhtml.go (100%) rename textmanipulation.go => internal/fetcher/textmanipulation.go (100%) create mode 100644 internal/models/yaml.go diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d9568ca --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*swp diff --git a/main.go b/cmd/main.go similarity index 100% rename from main.go rename to cmd/main.go diff --git a/fetchhtml.go b/internal/fetcher/fetchhtml.go similarity index 100% rename from fetchhtml.go rename to internal/fetcher/fetchhtml.go diff --git a/textmanipulation.go b/internal/fetcher/textmanipulation.go similarity index 100% rename from textmanipulation.go rename to internal/fetcher/textmanipulation.go diff --git a/internal/models/yaml.go b/internal/models/yaml.go new file mode 100644 index 0000000..815e5ee --- /dev/null +++ b/internal/models/yaml.go @@ -0,0 +1,12 @@ +package models + +type yaml struct { + Strophes []struct { + Lines []struct { + Verse int `yaml:"verse"` + Tet string `yaml:"text"` + Who string `yaml:"who"` + To string `yaml:"to"` + } `yaml:"lines"` + } `yaml:"strophes"` +}