Skip to content

Latest commit

 

History

History
30 lines (19 loc) · 551 Bytes

README.md

File metadata and controls

30 lines (19 loc) · 551 Bytes

autoindex

Implements Nginx's autoindex module in Go.

Getting started

CLI

Download and install the Autoindex CLI from autoindex/cli.

GitHub Actions

See autoindex/action for details.

Library

import "github.com/go-autoindex/autoindex"

const dir = "."

func main() {
	autoindex.Opts.Root = dir

	autoindex.Gen(autoindex.Info{
		Dir:     dir,
		Entries: []string{},
	})
}