Created
July 14, 2018 04:46
-
-
Save JakeTheCorn/a4b751fd61c05f68eb8a98fcfabaf07f to your computer and use it in GitHub Desktop.
Add Item to Slice in Go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func (cg *ColorGroup) addColor(newColor string) { | |
cg.Colors = append(cg.Colors, newColor) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment