You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: options.go
    path of file: ./repos/gnark/test/unsafekzg
    
    the code of the file until where you have to start completion: package unsafekzg

import (
	"os"
	"path/filepath"

	"github.com/consensys/gnark/logger"
)

type Option func(*config) error

// WithCacheDir enables the filesystem cache and s
    
func initCache(cacheDir string) {
	// get gnark logger
	log := logger.Logger()

	// populate cache from disk
	log.Warn().Str("cacheDir", cacheDir).Msg("using kzg srs cache")

	if _, err := os.Stat(cacheDir); os.IsNotExist(err) {
		err := os.MkdirAll(cacheDir, 0700)
		if err != nil {
			panic(err)
		}
	}
}