Skip to content

Instantly share code, notes, and snippets.

@vprus
Last active April 1, 2016 10:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vprus/c226e0bf58df4959dd7eff23bf8f1b99 to your computer and use it in GitHub Desktop.
Save vprus/c226e0bf58df4959dd7eff23bf8f1b99 to your computer and use it in GitHub Desktop.

Definining data

C++ 11

  std::vector<std::vector<std::string>> fields = {
      {"a", "b"},
      {"c", "d"}
  };  

Go

	fields := [][]string{
		[]string{"a", "b"},
		[]string{"a", "b"},
	}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment