Popularity
3.6
Declining
Activity
2.8
-
72
5
8

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

Programming language: Go
License: Do What The F*ck You Want To Public License

ODF alternatives and similar packages

Based on the "Specific Formats" category.
Alternatively, view ODF alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of ODF or a related project?

Add another 'Specific Formats' Package

README

ODF

Open Document Format (ODF) producer library for Go (golang).

Build Status

ОписаниС

Π€ΠΎΡ€ΠΌΠΈΡ€ΠΎΠ²Π°Π½ΠΈΠ΅ Π΄ΠΎΠΊΡƒΠΌΠ΅Π½Ρ‚Π° Π² Ρ„ΠΎΡ€ΠΌΠ°Ρ‚Π΅ 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.

http://kpmy.github.io/odf/