Browse Source

Update path

master
Jaeha Choi 3 months ago
parent
commit
42702e73f3
Signed by: Jaeha.Choi GPG Key ID: D6133D1D117FF503
  1. 9
      cmd/coconut_server/main.go
  2. 2
      config/config.yml
  3. 4
      internal/server/server.go
  4. 4
      internal/server/server_test.go
  5. 9
      main.go

9
cmd/coconut_server/main.go

@ -0,0 +1,9 @@
package main
import (
"../../internal/server"
)
func main() {
server.Start("../../config/config.yml")
}

2
config.yml → config/config.yml

@ -1,4 +1,4 @@
# Default config file
# Default server config file
server:
host: "127.0.0.1"
port: 9129

4
src/server.go → internal/server/server.go

@ -1,7 +1,7 @@
package src
package server
import (
"../log"
"../../pkg/log"
"fmt"
"gopkg.in/yaml.v3"
"io/ioutil"

4
src/server_test.go → internal/server/server_test.go

@ -1,7 +1,7 @@
package src
package server
import (
"../log"
"../../pkg/log"
"net"
"os"
"testing"

9
main.go

@ -1,9 +0,0 @@
package main
import (
"./src"
)
func main() {
src.Start()
}
Loading…
Cancel
Save