feat: project setup

This commit is contained in:
darwincereska
2026-01-05 16:56:38 -05:00
parent b6107c7c06
commit 40f8a64a49
38 changed files with 350 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
package citations
import "fmt"
// Method to return a MLA citation as a string
func (c *MLACitation) String() string {
return fmt.Sprintf(`"%s" (%s, %d)`, c.Content, c.LastName, c.PageNumber)
}
// Method to return a APA citation as a string
func (c *APACitation) String() string {
return fmt.Sprintf(`"%s" (%s, %d, p. %d)`, c.Content, c.LastName, c.Year, c.PageNumber)
}