Relative Content

Tag Archive for stringgoslice

how to add all thing in slice to a only one string

hello every body i was coding about create a map and on that map we have 2 thing name of book and number of book and i stuck in one thing if name of book is look like this “Harry Potter” only my code add Harry and i think to add all thing after Harry in my slice but golang give error and said you cant add slice to map only you can add one string thing and i dont know how to fix it