Skip to content

Instantly share code, notes, and snippets.

@zupzup
zupzup / main.go
Created Jul 14, 2017
Example for Basic AST Traversal in Go
View main.go
package main
import (
"fmt"
"go/ast"
"go/parser"
"go/printer"
"go/token"
"log"
"os"
@zupzup
zupzup / main.go
Created Mar 20, 2017
Go TCP Proxy / Port Forwarding Example (https://zupzup.org/go-port-forwarding/)
View main.go
package main
import (
"flag"
"fmt"
"io"
"log"
"net"
"os"
"os/signal"
You can’t perform that action at this time.