Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExploreOption ¶ added in v0.6.0
type ExploreOption struct {
// contains filtered or unexported fields
}
ExploreOption is a type for the options that can be passed to the Explore or Follow function.
func Column ¶ added in v0.6.1
func Column(column int) ExploreOption
Column places the next object in the same column on a new free row.
func Row ¶ added in v0.6.1
func Row(row int) ExploreOption
Row places the next object in the same row on a new free column.
func RowColumn ¶ added in v0.6.0
func RowColumn(row, column int) ExploreOption
RowColumn places the next object in the specified row and column.
type Options ¶
type Options struct { // Uses 5656 as the default HTTPPort int // Uses http.DefaultServeMux as default ServeMux *http.ServeMux // Uses "/" as default HTTPBasePath string }
Options can be used to configure a Service on startup.
type Service ¶
type Service interface { http.Handler // Start accepts 0 or 1 Options Start(opts ...Options) // Dump writes an HTML file for displaying the current state of the explorer and its entries. Dump() // Explore adds a new entry (next available row in column 0) for a value unless it cannot be explored. Explore(label string, value any, options ...ExploreOption) Service // ExplorePath adds a new entry for a value at the specified access path unless it cannot be explored. ExplorePath(dottedPath string, options ...ExploreOption) Service }
Service is an HTTP Handler to explore one or more values (structures).
func NewService ¶
NewService creates a new to explore one or more values (structures).
Source Files ¶
Click to show internal directories.
Click to hide internal directories.