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
package main | |
import ( | |
"net/http" | |
"database/sql" | |
"fmt" | |
"log" | |
"os" | |
) |
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
pragma solidity ^0.6.7; | |
contract MyFirstContract { | |
uint256 number = 0; | |
string[] names; | |
mapping(string => uint) public phoneNumbers; | |
function addPhoneNumber(string memory _name, uint _number) public { | |
phoneNumbers[_name] = _number; | |
} |