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: util_windows.go
    path of file: ./repos/buildkit/vendor/github.com/in-toto/in-toto-golang/in_toto
    
    the code of the file until where you have to start completion: package in_toto

import (
	"errors"
	"os"
)

func isWritable(path string) error {
	// get fileInfo
	info, err := os.
    
func isWritable(path string) error {
	// get fileInfo
	info, err := os.Stat(path)
	if err != nil {
		return err
	}

	// check if path is a directory
	if !info.IsDir() {
		return errors.New("not a directory")
	}

	// Check if the user bit is enabled in file permission
	if info.Mode().Perm()&(1<<(uint(7))) == 0 {
		return errors.New("not writable")
	}
	return nil
}