file-server/server.go
func New(root, dir string, options *Options) *Server {
	if options == nil {
		options = &Options{}
	}
	return &Server{
		Options: *options,

		root: root,
		dir:  dir,

		hashes: map[string]string{},
		mu:     &sync.RWMutex{},
	}
}
func New(root, dir string, options *Options) *Server {
	if options == nil {
		options = &Options{}
	}
	return &Server{
		Options: *options,

		root: root,
		dir:  dir,

		hashes: map[string]string{},
		mu:     &sync.RWMutex{},
	}
}
// New initializes a new instance of Server.