[GO] Why does my code provide a different output when ran on different machines?


I’ve been working in a group to make a program in Go that converts some text in the terminal (surrounded by double quotes) into ASCII font in a style provided by the sample.txt file. It works, however when we change the input to include a a double quote within the double quotation marks ex. “1a\”#F”, mine spits out ‘1a/‘, whereas my friends get ‘1a\”#F’ when they run it on their computers, despite us having the exact same code. I would like to know why that is, and whether it’s an issue with our code or because we have different versions of Go (mine is 1.19.3 whereas their’s are 1.19.1).

For reference, here is my code:

func main() {
	wordArg := os.Args
	split := strings.Split(wordArg[1], `\n`)
	text, err := os.ReadFile("standard.txt")
	if err != nil {
	lines := strings.Split(string(text), "\n")
	for i := 0; i < len(split); i++ {
		if string(split[i]) == "" {
		} else {
			for j := 0; j < 8; j++ {
				for k := 0; k < len(string(split[i])); k++ {

This is the result I get: Imgur: The magic of the Internet
vs the result I want: Imgur: The magic of the Internet (I apologise for the naked links, for some reason I can’t insert them properly here!)

Thank you!