Merge remote-tracking branch 'refs/remotes/origin/master'

This commit is contained in:
Benjamin A. Shelton 2026-09-12 08:57:10 -06:00
commit 5f4bae1cd6
Signed by: zancarius
GPG key ID: 8BD42DBD6C337E01
3 changed files with 30 additions and 30 deletions

View file

@ -32,19 +32,14 @@ type ScriptureStore struct {
}
func (s *ScriptureStore) GetVerse() *Scripture {
if s.Offset < len(s.Verses) {
s.Offset++
return s.Verses[s.Offset]
}
if len(s.Verses) == 1 {
s.Offset = 1
return s.Verses[0]
}
return &Scripture{
Verse: "3 John 11",
Translation: "BSB",
Content: "Beloved, do not imitate what is evil, but what is good. The one who does good is of God; the one who does evil has not seen God.",
}
defer func() {
if s.Offset+1 < len(s.Verses) {
s.Offset++
} else {
s.Offset = 0
}
}()
return s.Verses[s.Offset]
}
func OpenStore(name string) (*ScriptureStore, error) {