Skip to content

Instantly share code, notes, and snippets.

@vasa-develop
Created January 4, 2020 19:08
Show Gist options
  • Save vasa-develop/6b173fbd4ae0718da1d77635d58a5d18 to your computer and use it in GitHub Desktop.
Save vasa-develop/6b173fbd4ae0718da1d77635d58a5d18 to your computer and use it in GitHub Desktop.
SimpleAsWater: Hands-on IPLD Tutorial in Golang
scanner := bufio.NewScanner(os.Stdin)
fmt.Println("Enter value for the key field: ")
scanner.Scan()
inputKey := scanner.Text()
fmt.Println("Enter value for value field: ")
scanner.Scan()
inputValue := scanner.Text()
// Setting the key and values in the mapping
m[inputKey] = inputValue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment