Documentation ¶
Overview ¶
Package goblhtml provides a simple way to render HTML documents from GOBL envelopes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
Option defines a configuration option to use for rendering.
func WithCalFormatter ¶
WithCalFormatter prepares simple date and datetime formatting.
func WithEmbeddedStylesheets ¶ added in v0.6.0
func WithEmbeddedStylesheets() Option
WithEmbeddedStylesheets indicates that the stylesheets should be embedded inside the HTML document as opposed to links.
func WithLocale ¶
WithLocale sets the locale to use for rendering.
func WithLogo ¶
WithLogo overrides whatever logo was defined in the original envelope, if at all, using the provided logo according to the document type.
func WithNumFormatter ¶
WithNumFormatter defines a customer number formatter to use instead of that provided by default for the currency.
Directories ¶
Path | Synopsis |
---|---|
Package assets contains the static resources for things like styles.
|
Package assets contains the static resources for things like styles. |
cmd
|
|
gobl.html
Package main provides the entry point for the gobl.html command-line tool.
|
Package main provides the entry point for the gobl.html command-line tool. |
Package components defines all the templ components that will be used to render GOBL envelopes.
|
Package components defines all the templ components that will be used to render GOBL envelopes. |
bill/invoice
templ: version: v0.2.707
|
templ: version: v0.2.707 |
images
templ: version: v0.2.707
|
templ: version: v0.2.707 |
notes
templ: version: v0.2.707
|
templ: version: v0.2.707 |
org
templ: version: v0.2.707
|
templ: version: v0.2.707 |
regimes/co
Package co provides additional output for Colombian invoices.
|
Package co provides additional output for Colombian invoices. |
regimes/es
Package es provides additional templates and helper methods for the Spanish tax regime.
|
Package es provides additional templates and helper methods for the Spanish tax regime. |
regimes/gr
Package gr provides additional templates and helper methods for the Greek tax regime.
|
Package gr provides additional templates and helper methods for the Greek tax regime. |
regimes/mx
templ: version: v0.2.707
|
templ: version: v0.2.707 |
regimes/pl
templ: version: v0.2.707
|
templ: version: v0.2.707 |
regimes/pt
templ: version: v0.2.707
|
templ: version: v0.2.707 |
t
templ: version: v0.2.707
|
templ: version: v0.2.707 |
Package internal is used for internal option configuration.
|
Package internal is used for internal option configuration. |
Package locales provides all the content for translations.
|
Package locales provides all the content for translations. |
pkg
|
|
pdf
Package pdf provides a wrapper around different PDF generation tools to provide single conversion process regardless of implementation.
|
Package pdf provides a wrapper around different PDF generation tools to provide single conversion process regardless of implementation. |
Click to show internal directories.
Click to hide internal directories.