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: filesystemlayer.go
    path of file: ./repos/lal/pkg/hls
    
    the code of the file until where you have to start completion: // Copyright 2021, Chef.  All rights reserved.
// https://gith
    
func SetUseMemoryAsDiskFlag(flag bool) {
	setOnce.Do(func() {
		var t filesystemlayer.FslType
		if flag {
			t = filesystemlayer.FslTypeMemory
		} else {
			t = filesystemlayer.FslTypeDisk
		}
		if fslCtx == nil || fslCtx.Type() != t {
			fslCtx = filesystemlayer.FslFactory(t)
		}
	})
}