Skip to content

Commit

Permalink
Add Go Language
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdhilahiRWabwire committed Dec 26, 2024
1 parent df8820b commit c3a041f
Show file tree
Hide file tree
Showing 15 changed files with 51 additions and 116 deletions.
8 changes: 4 additions & 4 deletions data-interchange.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM amd64/debian:latest

WORKDIR /data_interchange
WORKDIR /data-interchange

COPY ./ ./

Expand All @@ -14,9 +14,9 @@ RUN echo 'export PATH="$PATH:/usr/bin"' >> ~/.bashrc && echo 'export PATH="$PATH
RUN echo 'export PATH="$PATH:/usr/local/bin"' >> ~/.bashrc && echo 'export PATH="$PATH:/usr/local/bin"' >> /etc/skel/.bashrc
RUN echo 'export PATH="$PATH:/usr/include"' >> ~/.bashrc && echo 'export PATH="$PATH:/usr/include"' >> /etc/skel/.bashrc
RUN echo 'export PATH="$PATH:/usr/local/include"' >> ~/.bashrc && echo 'export PATH="$PATH:/usr/local/include"' >> /etc/skel/.bashrc
RUN wget https://ziglang.org/download/0.13.0/zig-linux-x86_64-0.13.0.tar.xz && tar --extract --file ./*.xz --verbose
RUN mv ./zig-linux-x86_64-0.13.0 ./zig && mv ./zig /usr/bin
RUN echo 'export PATH="$PATH:/usr/bin/zig"' >> ~/.bashrc && echo 'export PATH="$PATH:/usr/bin/zig"' >> /etc/skel/.bashrc
RUN wget https://go.dev/dl/go1.23.4.linux-amd64.tar.gz && tar --extract --file ./*.gz --verbose
RUN mv ./go1.23.4.linux-amd64/go /usr/bin
RUN echo 'export PATH="$PATH:/usr/bin/go/bin"' >> ~/.bashrc && echo 'export PATH="$PATH:/usr/bin/go/bin"' >> /etc/skel/.bashrc
RUN add-apt-repository ppa:maveonair/helix-editor && apt update
RUN apt -y install ed sed nano vim neovim helix
RUN dart info
Expand Down
67 changes: 17 additions & 50 deletions server/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,61 +3,28 @@
build/
**/build/

# Prerequisites
*.d

# Compiled Object files
*.slo
*.lo
*.o
*.ko
*.obj
*.elf

# Linker output
*.ilk
*.map
*.exp

# Precompiled Headers
*.gch
*.pch

# Compiled Static libraries
*.lai
*.lib
*.a
*.la
*.lo

# Shared objects (inc. Windows DLLs)
# If you prefer the allow list template instead of the deny list, see community template:
# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore
#
# Binaries for programs and plugins
*.exe
*.exe~
*.dll
*.so
*.so.*
*.dylib

# Executables
*.exe
# Test binary, built with `go test -c`
*.test

# Output of the go coverage tool, specifically when used with LiteIDE
*.out
*.app
*.i*86
*.x86_64
*.hex

# Debug files
*.dSYM/
*.su
*.idb
*.pdb
# Dependency directories (remove the comment below to include it)
# vendor/

# Kernel Module Compile Results
*.mod*
*.cmd
.tmp_versions/
modules.order
Module.symvers
Mkfile.old
dkms.conf
# Go workspace file
go.work
go.work.sum

# Zig
.zig-cache
# env file
.env
13 changes: 0 additions & 13 deletions server/build.zig

This file was deleted.

18 changes: 0 additions & 18 deletions server/build.zig.zon

This file was deleted.

3 changes: 3 additions & 0 deletions server/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module data-interchange-server

go 1.23.4
5 changes: 5 additions & 0 deletions server/source/command/argument_lexer.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package command

// Command Line Argument Lexer
type HTTPLexer struct {
}
6 changes: 0 additions & 6 deletions server/source/command/argument_lexer.zig

This file was deleted.

5 changes: 5 additions & 0 deletions server/source/command/argument_parser.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package command

// Command Line Argument Parser
type HTTPParser struct {
}
6 changes: 0 additions & 6 deletions server/source/command/argument_parser.zig

This file was deleted.

5 changes: 5 additions & 0 deletions server/source/command/argument_tokenizer.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package command

// Command Line Argument Tokenizer
type HTTPTokenizer struct {
}
6 changes: 0 additions & 6 deletions server/source/command/argument_tokenizer.zig

This file was deleted.

7 changes: 7 additions & 0 deletions server/source/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package main

import "fmt"

func main() {
fmt.Println("Data Interchange Server")
}
7 changes: 0 additions & 7 deletions server/source/main.zig

This file was deleted.

5 changes: 5 additions & 0 deletions server/source/yaml/yaml.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package yaml

// Yet Another Markup Language Model
type YAML struct {
}
6 changes: 0 additions & 6 deletions server/source/yaml/yaml.zig

This file was deleted.

0 comments on commit c3a041f

Please sign in to comment.