Command | Go | Rust | Node.js |
---|---|---|---|
Installation | go install |
rustup |
nvm/volta/n/fnm |
Package Manager | go |
cargo |
npm/yarn/pnpm |
Configuration | go.mod |
Cargo.toml |
package.json |
Testing | go test |
cargo test |
jest/vitest/node:test |
Building | go build |
cargo build |
Webpack/turbo |
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
//SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.0; | |
// x -----> | |
// _______________ | |
// y |____|____|_____ | |
// |____|____|_____ | |
// |____|____|_____ | |
// |____|____|_____ |
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
// SPDX-License-Identifier: GPL-3.0 | |
pragma solidity >=0.8.19; | |
contract LogEmitter { | |
event Log(address indexed msgSender); | |
function emitLog() public { | |
emit Log(msg.sender); | |
} |
This is not an exhaustive list of all interfaces in Go's standard library.
I only list those I think are important.
Interfaces defined in frequently used packages (like io
, fmt
) are included.
Interfaces that have significant importance are also included.
All of the following information is based on go version go1.8.3 darwin/amd64
.
OlderNewer