feragstring/README.md

42 lines
948 B
Markdown
Raw Normal View History

2020-05-27 21:23:36 +02:00
# feragstring
2020-05-28 21:23:15 +02:00
*feragstring* is a Go package for creating a Ferag string file from a JSON data structure. If you don't know what Ferag (the company) or a Ferag string is you probably don't need this package ;-)
## Usage
```go
fs := NewFeragString()
fs.SetTitleName("EDITION1")
fs.TitleInfo.SetPrintObjectName("EDITION1A")
fs.TitleInfo.SetPublicationDate("2020-05-31")
fs.TitleInfo.SetCountryCode("13")
fs.TitleInfo.SetPrintObjectColor("00000000")
pr1 := NewProductReference()
pr1.SetProductName("MAIN")
pr1.SetCopiesAssigned(25000)
pr1.SetSupervision(1)
pr1.SetOverlap(5)
mp := MissingParameter{
missingRate: 1,
missingSize: 1,
}
pr1.SetMissingParameter(mp)
pr1.SetIssueReference("MAIN01")
fs.AddProductReference(pr1)
```
2020-05-27 21:23:36 +02:00
2020-05-27 22:28:17 +02:00
## Supported messages
- Title Info (%2440)
- Title End (%2441)
- Product Reference (%2450)
- Route List Entry (%2401)
- Route Info (%2402)
2020-05-27 21:23:36 +02:00
## Installation
```bash
go get -u github.com/jakoubek/feragstring
```