Skip to content

Commit

Permalink
CNJWrite now returns string
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielFillol authored Apr 14, 2022
1 parent 2b4ae07 commit 5ce1bf3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cnj_validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,9 @@ func AnalyzeCNJ(cnj string) (Structs.AnalysisCNJ, error) {

}

func CNJWrite(number Structs.AnalysisCNJ) {
func CNJWrite(number Structs.AnalysisCNJ) string {
var preposition string
var text

lawsuit := number.Detailed.LawsuitNumber
year := number.Detailed.ProtocolYear
Expand All @@ -72,5 +73,6 @@ func CNJWrite(number Structs.AnalysisCNJ) {
preposition = "da"
}

fmt.Println("Processo número: " + lawsuit + ", ajuizado no ano de " + year + ", pertencente ao segmento " + preposition + " " + segment1 + " (" + segment2 + "), tendo como unidade de origem: " + sourceU1 + ": " + sourceU2 + " | " + ct1 + ": " + ct2)
text := "Processo número: " + lawsuit + ", ajuizado no ano de " + year + ", pertencente ao segmento " + preposition + " " + segment1 + " (" + segment2 + "), tendo como unidade de origem: " + sourceU1 + ": " + sourceU2 + " | " + ct1 + ": " + ct2
return text
}

0 comments on commit 5ce1bf3

Please sign in to comment.