Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mborders/romanus
Golang library containing the entire Roman Catechism of the Council of Trent
https://github.com/mborders/romanus
catechism catechism-of-the-council-of-trent catholic golang roman-catechism
Last synced: about 1 month ago
JSON representation
Golang library containing the entire Roman Catechism of the Council of Trent
- Host: GitHub
- URL: https://github.com/mborders/romanus
- Owner: mborders
- License: mit
- Created: 2019-03-13T16:32:02.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-08-18T00:23:00.000Z (over 4 years ago)
- Last Synced: 2024-10-22T09:48:50.980Z (2 months ago)
- Topics: catechism, catechism-of-the-council-of-trent, catholic, golang, roman-catechism
- Language: Go
- Homepage:
- Size: 364 KB
- Stars: 9
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-catholic - romanus - Todo el Catecismo Romano del Concilio de Trento (Datos)
README
[![GoDoc](http://godoc.org/github.com/mborders/romanus?status.png)](http://godoc.org/github.com/mborders/romanus)
[![Build Status](https://travis-ci.org/mborders/romanus.svg?branch=master)](https://travis-ci.org/mborders/romanus)
[![Go Report Card](https://goreportcard.com/badge/github.com/mborders/romanus)](https://goreportcard.com/report/github.com/mborders/romanus)
[![codecov](https://codecov.io/gh/mborders/romanus/branch/master/graph/badge.svg)](https://codecov.io/gh/mborders/romanus)# romanus
Golang library containing the entire Roman Catechism of the Council of Trent.
Documentation here: https://godoc.org/github.com/mborders/romanus
## Example Usage
```go
// Create a new catechism instance
c := romanus.NewCatechism()// Get Part 1
part, err := c.GetPart(1)// Get Part 1, Article 1
a, err := c.GetArticle(1, 1)// Get Part 1, Article 1, Section 1
s, err := c.GetSection(1, 1, 1)// Get Part 1, Article 1, Section 1, Paragraph 1
p, err := c.GetParagraph(1, 1, 1, 1)
fmt.Print(p.Text) // English// Search for paragraphs
r := c.Search("I believe", 10)
fmt.Print(r[0].Part.PartNumber)
fmt.Print(r[0].Article.ArticleNumber)
fmt.Print(r[0].Section.SectionNumber)
fmt.Print(r[0].Paragraph.ParagraphNumber)
fmt.Print(r[0].Paragraph.Text)
fmt.Print(r[0].String()) // Part 4, Article 3, Section 4, Paragraph 1
```