Skip to content

go-autoindex/autoindex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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{},
	})
}