From cc3ef04e2954fc60a03214b26424ebb16195a4e9 Mon Sep 17 00:00:00 2001 From: Shivasurya Date: Mon, 1 Jul 2024 14:00:45 -0400 Subject: [PATCH] Remove unused config (#41) --- sourcecode-parser/.air.toml | 47 ------------ sourcecode-parser/Dockerfile | 20 ------ sourcecode-parser/docker-compose.yml | 14 ---- sourcecode-parser/html/index.html | 103 --------------------------- sourcecode-parser/lsp.go.txt | 64 ----------------- 5 files changed, 248 deletions(-) delete mode 100644 sourcecode-parser/.air.toml delete mode 100644 sourcecode-parser/Dockerfile delete mode 100644 sourcecode-parser/docker-compose.yml delete mode 100644 sourcecode-parser/html/index.html delete mode 100644 sourcecode-parser/lsp.go.txt diff --git a/sourcecode-parser/.air.toml b/sourcecode-parser/.air.toml deleted file mode 100644 index 9f84e3b..0000000 --- a/sourcecode-parser/.air.toml +++ /dev/null @@ -1,47 +0,0 @@ -# air.toml -# Root level settings for the Air tool -root = "." -tmp_dir = "tmp" -poll = true - -[build] - # Command to build your application - cmd = "go build -o ./tmp/main ." - # Directory to watch for changes - bin = "tmp/main /app/example-java-project" - include_dir = ["."] - # Extensions to watch - include_ext = ["go", "tpl", "tmpl", "html"] - # Directories to exclude from watching - exclude_dir = ["assets", "tmp", "vendor"] - # Files to exclude from watching - exclude_file = [] - # This command is run before the build command if non-empty - pre_build = "" - # This command is run after the build command if non-empty - post_build = "" - -[log] - # Log file name, set to "" to disable - filename = "air.log" - # Log level, can be "debug", "info", "warn", "error", "fatal", "panic" - level = "info" - -[color] - # Enable colors in log - main = "magenta" - watcher = "cyan" - build = "yellow" - runner = "green" - -[http] - # Enable sending a request after the build is successful - enable = false - # URL to which the request is sent - url = "" - # HTTP method (GET, POST, etc.) - method = "GET" - -[misc] - # Commands to run when air starts - clean_on_exit = false diff --git a/sourcecode-parser/Dockerfile b/sourcecode-parser/Dockerfile deleted file mode 100644 index 274bcba..0000000 --- a/sourcecode-parser/Dockerfile +++ /dev/null @@ -1,20 +0,0 @@ -# Use an official Go runtime as a parent image -FROM golang:latest - -# Install GCC (required for cgo) -RUN apt-get update && apt-get install -y build-essential - -# Set the working directory inside the container -WORKDIR /app - -RUN go install github.com/cosmtrek/air@latest - -# Copy the current directory contents into the container at /app -COPY . . - -# Expose port 8080 to the outside world -EXPOSE 8080 - -# Run the application when the container launches -# Run Air -CMD ["air"] diff --git a/sourcecode-parser/docker-compose.yml b/sourcecode-parser/docker-compose.yml deleted file mode 100644 index 6c899f8..0000000 --- a/sourcecode-parser/docker-compose.yml +++ /dev/null @@ -1,14 +0,0 @@ -version: '3' -services: - app: - build: . - volumes: - - .:/app - - go-build:/go/pkg/mod - ports: - - "8080:8080" - environment: - - GO_ENV=development - -volumes: - go-build: diff --git a/sourcecode-parser/html/index.html b/sourcecode-parser/html/index.html deleted file mode 100644 index d6cbadb..0000000 --- a/sourcecode-parser/html/index.html +++ /dev/null @@ -1,103 +0,0 @@ - - - - Pathfinder - - - - - - - - - - - - - - - - -
-

PathFinder

- -
- - -
- -
-
- - - \ No newline at end of file diff --git a/sourcecode-parser/lsp.go.txt b/sourcecode-parser/lsp.go.txt deleted file mode 100644 index adb5887..0000000 --- a/sourcecode-parser/lsp.go.txt +++ /dev/null @@ -1,64 +0,0 @@ -package main - -import ( - "bufio" - "fmt" - "net" - "os" - "strings" -) - -func mains() { - address := "127.0.0.1:5036" - - conn, err := net.Dial("tcp", address) - if err != nil { - fmt.Println("Error connecting to server:", err) - return - } - defer conn.Close() - fmt.Println("Connected to the server. Type your JSON message and press enter.") - - // Start a goroutine to listen for messages from the server - go func() { - serverReader := bufio.NewReader(conn) - for { - serverMessage, err := serverReader.ReadString('\n') - if err != nil { - fmt.Println("Error reading from server:", err) - return - } - if serverMessage != "" { - fmt.Printf("Message from server: %s\n", serverMessage) - } - } - }() - - reader := bufio.NewReader(os.Stdin) - - for { - fmt.Print("Enter JSON message: ") - jsonMessage, err := reader.ReadString('\n') - if err != nil { - fmt.Println("Error reading input:", err) - return - } - jsonMessage = strings.TrimSpace(jsonMessage) // Trim newline character for clean input - - // Calculate the content length - contentLength := len([]byte(jsonMessage)) - - // Create the full message with headers - fullMessage := fmt.Sprintf("Content-Length: %d\r\n\r\n%s", contentLength, jsonMessage) - - // Send the message - datas, err := conn.Write([]byte(fullMessage)) - fmt.Println(datas) - if err != nil { - fmt.Println("Error sending message:", err) - return - } - - fmt.Println("Message sent. Type another message, or CTRL+C to quit.") - } -}