- Ctrl + B : Toggle sidebar
- Ctrl + ` : Toggle Terminal
- Ctrl + N : New File
- Ctrl + P : Search file
- Ctrl + Shift + X : Manage extensions
- Ctrl + Shift + E : File Explorer
- Ctrl + Shift + F : Search
- Ctrl + Shift + G : Source Control
Go is a general-purpose language designed with systems programming in mind. It is strongly typed and garbage-collected and has explicit support for concurrent programming. Programs are constructed from packages, whose properties allow efficient management of dependencies
There are boolean constants, rune constants, integer constants, floating-point constants, complex constants, and string constants. Rune, integer, floating-point, and complex constants are collectively called numeric constants.
Go developers generally only rely on encapsulation when it's necessary, such as when field data needs to be validated by
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.
| { | |
| "name": "project-name", | |
| "description": "Template for static sites", | |
| "version": "1.0.0", | |
| "homepage": "http://www.project-name.com", | |
| "author": { | |
| "name": "Adam Reis", | |
| "url": "http://adam.reis.nz" | |
| }, | |
| "license": "UNLICENSED", |
| # source : http://code.google.com/p/natvpn/source/browse/trunk/stun_server_list | |
| # A list of available STUN server. | |
| stun.l.google.com:19302 | |
| stun1.l.google.com:19302 | |
| stun2.l.google.com:19302 | |
| stun3.l.google.com:19302 | |
| stun4.l.google.com:19302 | |
| stun01.sipphone.com | |
| stun.ekiga.net |
| var crypto = require('crypto') | |
| , fs = require('fs') | |
| // Algorithm depends on availability of OpenSSL on platform | |
| // Another algorithms: 'sha1', 'md5', 'sha256', 'sha512' ... | |
| var algorithm = 'sha1' | |
| , shasum = crypto.createHash(algorithm) | |
| // Updating shasum with file content | |
| var filename = __dirname + "/anything.txt" |