Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEmbeddedFileSystem ¶ added in v0.2.0
func GetEmbeddedFileSystem() http.FileSystem
GetEmbeddedFileSystem returns a http.FileSystem that serves files from the embedded filesystem
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
App represents the core application with configuration options such as host, port, JSON indentation, and logging.
type AppOption ¶
AppOption represents a function that configures an App instance and may return an error during the setup process.
func WithDebug ¶
WithDebug sets the debug mode for the application, enabling detailed logging for requests and responses.
func WithHost ¶
WithHost sets the hostname or IP address that the application server will use to listen for incoming HTTP requests.
func WithIndent ¶
WithIndent sets the string used for JSON output indentation in the application configuration.
func WithLogger ¶
WithLogger sets the application's logger for structured logging and returns an AppOption for configuration.
func WithNoBrowser ¶ added in v0.5.0
WithNoBrowser sets the noBrowser field in the App to determine if the app should refrain from opening a browser on startup.
func WithPort ¶
WithPort sets the TCP port for the application server to listen on and returns an AppOption for configuration.
func WithReadOnly ¶
WithReadOnly sets the application's read-only mode to the specified value.
type EditPageData ¶
type EditPageData struct {
// Content represents the primary JSON content to be displayed or edited on the page.
Content string
// Error represents an optional error message to be displayed on the page.
Error string
// FormContent contains HTML content used to render an editable JSON form or dynamic interface for the edit page.
FormContent template.HTML
// ReadOnly indicates whether the content or form should be displayed in a non-editable mode.
ReadOnly bool
}
Define data structures for templates
Source Files
¶
- embedded.go
- handler_compare.go
- handler_csv2json.go
- handler_edit.go
- handler_flatten.go
- handler_from_schema.go
- handler_index.go
- handler_new.go
- handler_save.go
- handler_upload.go
- handler_validate.go
- template_compare.go
- template_csv2json.go
- template_edit_page.go
- template_flatten.go
- template_from_schema.go
- template_index.go
- template_validate.go
- types.go





