Skip to content

Commit

Permalink
gofmt config.go
Browse files Browse the repository at this point in the history
  • Loading branch information
cyfdecyf committed Dec 11, 2012
1 parent b65a437 commit db15f04
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions shadowsocks/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@ package shadowsocks

import (
"encoding/json"
"os"
"log"
"os"
)

type Config struct {
Server string `json:"server"`
ServerPort int `json:"server_port"`
LocalPort int `json:"local_port"`
Password string `json:"password"`
Server string `json:"server"`
ServerPort int `json:"server_port"`
LocalPort int `json:"local_port"`
Password string `json:"password"`
}

func ParseConfig() Config {
Expand All @@ -35,7 +36,7 @@ func ParseConfig() Config {
var config Config
err = json.Unmarshal(data[0:count], &config)
if err != nil {
log.Fatal("can not parse config:",err)
log.Fatal("can not parse config:", err)
}
return config
}

0 comments on commit db15f04

Please sign in to comment.