Created
January 4, 2020 19:08
-
-
Save vasa-develop/6b173fbd4ae0718da1d77635d58a5d18 to your computer and use it in GitHub Desktop.
SimpleAsWater: Hands-on IPLD Tutorial in Golang
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
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