Skip to content

Instantly share code, notes, and snippets.

View nevermosby's full-sized avatar
🎯
Focusing

Wen-Quan Li nevermosby

🎯
Focusing
View GitHub Profile

zuul 配置

zuul:
  ignoredServices: '*'
  host:
    connect-timeout-millis: 20000
    socket-timeout-millis: 20000

  routes:
 auth-service:
@nevermosby
nevermosby / goroutine-channel-communicate.go
Created August 22, 2016 09:16
Use goroutine and channel to share data
package main
import (
"fmt"
"math/rand"
"sync"
)
func main() {
@nevermosby
nevermosby / goroutine-download-file.go
Created August 22, 2016 09:14
Use goroutine to download multiple files
package main
import (
"fmt"
"io"
"log"
"net/http"
"os"
"strings"
"sync"