PhpStorm Tips, ticks and standard setup
- Tips and Tracks for PHPStorm (PHPStorm Tips and Tricks.md)
- Standard setup for PHP projects (Standard.md)
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.
| [Unit] | |
| Description=ServiceName | |
| Documentation=https://example.com/doc.txt | |
| After=network-online.target | |
| Wants=network-online.target systemd-networkd-wait-online.service | |
| [Service] | |
| Restart=on-failure | |
| PermissionsStartOnly=true | |
| User=programusername |
| # nginx reverse proxy configuration for hosting two websites on one server | |
| # File has to be saved in /etc/nginx/sites-available/website | |
| # Then link it and store that in ../sites-enabled | |
| # Also this configuration can be used to enable https on a website, Remove the third server {} block. | |
| server { | |
| # Redirect from http to https | |
| listen 80; | |
| listen [::]:80 default_server; | |
| return 301 https://$host$request_uri; |
| package main | |
| import ( | |
| "fmt" | |
| "reflect" | |
| ) | |
| // Name of the struct tag used in examples | |
| const tagName = "validate" |
| package main | |
| /** | |
| * @website http://albulescu.ro | |
| * @author Cosmin Albulescu <[email protected]> | |
| */ | |
| import ( | |
| "bytes" | |
| "fmt" |
| package controllers | |
| import ( | |
| "fmt" | |
| "io" | |
| "log" | |
| "mime/multipart" | |
| "net/http" | |
| "os" | |
| "path/filepath" |