JOSE is a comprehensive set of JWT, JWS, and JWE libraries.
go get github.com/SermoDigital/jose
class RegexRouter | |
{ | |
private $routes = array(); | |
public function addRoute($route, callable $service) | |
{ | |
$route = '#^'.$route.'$#'; | |
$this->routes[$route] = $service; | |
return $this; | |
} |
server { | |
listen 80; | |
server_name localhost; | |
root /var/www/html; | |
error_log /var/log/nginx/localhost.error.log; | |
access_log /var/log/nginx/localhost.access.log; | |
location / { |
#!/bin/bash | |
USERNAME=$USER | |
#----------------- | |
# Remove packages | |
#----------------- | |
sudo apt purge --assume-yes aisleriot \ | |
gnome-sudoku \ | |
ace-of-penguins \ |
After installing Go and setting up your GOPATH
go get golang.org/x/net/websocket
package main | |
import ( | |
"fmt" | |
"time" | |
) | |
func main() { | |
TimeDisplay(true) | |
} |
It just an experimental package to handle concurrent errors stack. The concept is based on the First Class Functions and inspired by Dave Cheney posts.
func main() {
s := NewStack()
package main | |
import ( | |
"fmt" | |
"net/http" | |
"time" | |
) | |
var Realm = "Authorization Required" |