Description
This library is for generation of ODF document with Go.
You can produce a document with content by calling the Formatter methods. Then you can save this document to zip-file .odf
No need for your code to handle with ODF XML content. More examples in demo/report.go
ODF alternatives and similar packages
Based on the "Specific Formats" category.
Alternatively, view ODF alternatives based on common mentions on social networks and blogs.
-
bluemonday
bluemonday: a fast golang HTML sanitizer (inspired by the OWASP Java HTML Sanitizer) to scrub user generated content of XSS -
html-to-markdown
βοΈ Convert HTML to Markdown. Even works with entire websites and can be extended through rules. -
mxj
Decode / encode XML to/from map[string]interface{} (or JSON); extract values with dot-notation paths and wildcards. Replaces x2j and j2x packages. -
omniparser
omniparser: a native Golang ETL streaming parser and transform library for CSV, JSON, XML, EDI, text, etc. -
go-pkg-rss
This package reads RSS and Atom feeds and provides a caching mechanism that adheres to the feed specs. -
goq
A declarative struct-tag-based HTML unmarshaling or scraping package for Go built on top of the goquery library -
xquery
XQuery lets you extract data from HTML/XML documents using XPath expression. -
github_flavored_markdown
GitHub Flavored Markdown renderer with fenced code block highlighting, clickable header anchor links. -
gospider
β‘ Light weight Golang spider framework | θ½»ιη Golang η¬θ«ζ‘ζΆ -
go-pkg-xmlx
Extension to the standard Go XML package. Maintains a node tree that allows forward/backwards browsing and exposes some simple single/multi-node search functions. -
pagser
Pagser is a simple, extensible, configurable parse and deserialize html page to struct based on goquery and struct tags for golang crawler -
csvplus
csvplus extends the standard Go encoding/csv package with fluent interface, lazy stream operations, indices and joins. -
codetree
:evergreen_tree: Parses indented code and returns a tree structure. -
jsoncolor
Colorized JSON output for Go https://godoc.org/github.com/nwidger/jsoncolor
InfluxDB - Power Real-Time Data Analytics at Scale
Do you think we are missing an alternative of ODF or a related project?
Popular Comparisons
README
ODF
Open Document Format (ODF) producer library for Go (golang).
ΠΠΏΠΈΡΠ°Π½ΠΈΠ΅
Π€ΠΎΡΠΌΠΈΡΠΎΠ²Π°Π½ΠΈΠ΅ Π΄ΠΎΠΊΡΠΌΠ΅Π½ΡΠ° Π² ΡΠΎΡΠΌΠ°ΡΠ΅ Open Document (ODF) Π΄Π»Ρ ΡΠ·ΡΠΊΠ° Go (golang).
Π€ΠΎΡΠΌΠΈΡΠΎΠ²Π°Π½ΠΈΠ΅ Π΄ΠΎΠΊΡΠΌΠ΅Π½ΡΠ° Π·Π°ΠΊΠ»ΡΡΠ°Π΅ΡΡΡ Π² ΠΏΠΎΡΠ»Π΅Π΄ΠΎΠ²Π°ΡΠ΅Π»ΡΠ½ΠΎΠΌ Π²ΡΠ·ΠΎΠ²Π΅ ΠΈΠ½ΡΡΡΡΠΊΡΠΈΠΉ Π€ΠΎΡΠΌΠ°ΡΡΠ΅ΡΠ°, ΠΊΠΎΡΠΎΡΡΠΉ Π²ΡΠΏΠΎΠ»Π½ΡΠ΅Ρ ΠΌΠΎΠ΄ΠΈΡΠΈΠΊΠ°ΡΠΈΡ ΠΎΠ΄Π½ΠΎΠΉ ΠΈΠ»ΠΈ Π½Π΅ΡΠΊΠΎΠ»ΡΠΊΠΈΡ ΡΠ°ΡΡΠ΅ΠΉ ΠΌΠΎΠ΄Π΅Π»ΠΈ Π΄ΠΎΠΊΡΠΌΠ΅Π½ΡΠ°. ΠΠ°ΡΠ΅ΠΌ Π²ΡΠ·ΡΠ²Π°Π΅ΡΡΡ ΠΏΡΠΎΡΠ΅Π΄ΡΡΠ° Π³Π΅Π½Π΅ΡΠ°ΡΠΈΠΈ ΡΠ°ΠΉΠ»Π°-Π°ΡΡ ΠΈΠ²Π° .odf
ΠΠ»ΠΈΠ΅Π½ΡΡΠΊΠΈΠΉ ΠΊΠΎΠ΄ ΠΈΠ·ΠΎΠ»ΠΈΡΡΠ΅ΡΡΡ ΠΎΡ ΠΎΡΠΎΠ±Π΅Π½Π½ΠΎΡΡΠ΅ΠΉ ΡΡΡΡΠΊΡΡΡΡ Π΄ΠΎΠΊΡΠΌΠ΅Π½ΡΠ° ODF.
ΠΠ΅ΠΎΠ±Ρ ΠΎΠ΄ΠΈΠΌΠΎΡΡΡ ΡΠΎΡΠΌΠ°ΡΡΠ΅ΡΠ° ΠΎΠ±ΡΡΠ»ΠΎΠ²Π»Π΅Π½Π° ΡΠ΅ΠΌ, ΡΡΠΎ ΡΡΠ°Π½Π΄Π°ΡΡ ODF ΠΏΡΠ΅Π΄ΠΏΠΎΠ»Π°Π³Π°Π΅Ρ ΠΈΠ·ΠΌΠ΅Π½Π΅Π½ΠΈΠ΅ Π²ΠΈΠ΄ΠΈΠΌΠΎΠ³ΠΎ ΡΠΎΠ΄Π΅ΡΠΆΠΈΠΌΠΎΠ³ΠΎ Π΄ΠΎΠΊΡΠΌΠ΅Π½ΡΠ° ΠΏΠΎΡΡΠ΅Π΄ΡΡΠ²ΠΎΠΌ ΠΈΠ·ΠΌΠ΅Π½Π΅Π½ΠΈΠΉ Π² Π½Π΅ΡΠΊΠΎΠ»ΡΠΊΠΈΡ ΠΌΠ΅ΡΡΠ°Ρ ΠΌΠΎΠ΄Π΅Π»ΠΈ Π΄ΠΎΠΊΡΠΌΠ΅Π½ΡΠ° (ΡΡΠΈΠ»ΠΈ, Π²ΡΡΡΠΎΠ΅Π½Π½ΡΠ΅ ΡΠ°ΠΉΠ»Ρ, ΠΈ Ρ.Π΄.)
ΠΡΠΈΠΌΠ΅Ρ
go get github.com/kpmy/odf
Π ΠΏΠ°ΠΊΠ΅ΡΠ΅ demo Π΅ΡΡΡ ΠΏΡΠΈΠΌΠ΅Ρ ΠΈΡΠΏΠΎΠ»ΡΠ·ΠΎΠ²Π°Π½ΠΈΡ ODF Π΄Π»Ρ ΡΠΎΡΠΌΠΈΡΠΎΠ²Π°Π½ΠΈΡ ΠΎΡΡΠ΅ΡΠ°.
Description
This library is for generation of ODF document with Go.
You can produce a document with content by calling the Formatter methods. Then you can save this document to zip-file .odf
No need for your code to handle with ODF XML content. More examples in demo/report.go
Example
package main
import (
"odf/generators"
"odf/mappers"
"odf/model"
_ "odf/model/stub" //don't forget pimpl
"odf/xmlns"
"os"
)
func main() {
if output, err := os.Create("demo2.odf"); err == nil {
//we need an empty model
m := model.ModelFactory()
//standard formatter
fm := &mappers.Formatter{}
//couple them
fm.ConnectTo(m)
//we want text
fm.MimeType = xmlns.MimeText
//yes we can
fm.Init()
//pretty simple
fm.WriteString("Hello, World!")
//store file
generators.GeneratePackage(m, nil, output, fm.MimeType)
//cleanup
defer output.Close()
}
}
Moar
It works in browser now. Got Demo3, GopherJS + Dart.