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: csv2md.go
    path of file: ./repos/golang-examples/advanced
    
    the code of the file until where you have to start completion: // Description: Convert CSV to Markdown table
// Tags: csv, markdown, table, convert, convert csv to markdown, convert csv to markdown table, convert csv to markdown tab
    
func fixedLengthBefore(str string, spacer string, length int) string {
	spacer = spacer[:1]
	l := length - len(str)
	if l > 0 {
		return strings.Repeat(spacer, l) + str
	}
	if l == 0 {
		return str
	}
	return str[:length]
}