iview

command module
v0.0.0-...-1635d1c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2025 License: MIT Imports: 28 Imported by: 0

README

iview: Instant View local HTTP server

PkgGoDev Actions/Go Go Report Card

iview is an HTTP server that serves the contents of a local directory. When serving, it applies templates and filters depending on the file type. This makes it function as a pseudo file explorer or file viewer. Additionally, the file viewer has an auto-reload feature.

Direcotry Structure for Resources

The resource direcotry (_resource) provides two fs.FSs: static and template

  • static directory provides static resources.
  • template direcotry provides templates.
    • layout.html is the root layout template.
    • others: templates for media types.

The resource directory is normally exposed via embed.FS, but the physical file system can be used for debugging purposes using the -rsrc option.

Misc.

  • You can open a file in an editor. The editor can be specified with the -editor flag, or the environment variables IVIEW_EDITOR and EDITOR. The priority is as described above.

Developer Resources

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd
fsmon command
gitstatus command
internal
browser
Package browser provides utilities for interacting with users' browsers.
Package browser provides utilities for interacting with users' browsers.
fschanges
Package fschanges provides HTTP server that streams change events on a filesystem.
Package fschanges provides HTTP server that streams change events on a filesystem.
fsmonitor
Package fsmonitor monitors change events in the specified directory.
Package fsmonitor monitors change events in the specified directory.
gitfunc
Package gitfunc provides wrappers for the functions of go-git that iview uses.
Package gitfunc provides wrappers for the functions of go-git that iview uses.
highlight
Package highlight provides/wraps syntax highlighting feature.
Package highlight provides/wraps syntax highlighting feature.
pubsub
Package pubsub provides simple pub/sub feature.
Package pubsub provides simple pub/sub feature.
templatefs
Package templatefs provides Template set.
Package templatefs provides Template set.
Package layout provides layout mechanism for iview
Package layout provides layout mechanism for iview
dto
Package dto provides Data Transfer Object for layout system.
Package dto provides Data Transfer Object for layout system.
Package plugin provides extensible ponits of iview.
Package plugin provides extensible ponits of iview.
gitinfo
Package gitinfo provides git information.
Package gitinfo provides git information.
markdown
Package markdown provides markdown plugin for iview.
Package markdown provides markdown plugin for iview.
octetstream
Package octetstream provides a layout for iviews that display dumps of application/octet-stream files.
Package octetstream provides a layout for iviews that display dumps of application/octet-stream files.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL