Skip to content

Instantly share code, notes, and snippets.

View vgangireddyin's full-sized avatar

Venu Gangireddy vgangireddyin

View GitHub Profile
package main
import(
"fmt"
"time"
)
func Publish(text string, delay time.Duration) {
/**
* Create a thread at os level and shedule by go sheduler
@vgangireddyin
vgangireddyin / tcp_client.go
Created May 26, 2016 18:24
Simple TCP Server in Golang
package main
import (
"fmt"
"net"
"bufio"
"os"
)
func main() {
@vgangireddyin
vgangireddyin / bintree_equivalence.go
Created May 11, 2016 12:22
Go Tour: Equivalent Binary Trees
package main
import (
"golang.org/x/tour/tree"
"fmt"
)
func walkrec(t *tree.Tree, ch chan int){
if t == nil {