Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fyzanshaik/go-dsa
Exploring the fundamentals of Go programming with practical examples and tutorials in this repository.
https://github.com/fyzanshaik/go-dsa
Last synced: about 5 hours ago
JSON representation
Exploring the fundamentals of Go programming with practical examples and tutorials in this repository.
- Host: GitHub
- URL: https://github.com/fyzanshaik/go-dsa
- Owner: fyzanshaik
- Created: 2023-11-30T04:30:52.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2023-12-08T07:08:17.000Z (11 months ago)
- Last Synced: 2023-12-08T08:24:18.309Z (11 months ago)
- Language: Go
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Go Basics Repository
This repository contains basic Go language examples and a book-ticket app.
## How to Run Examples
### Prerequisites
- [Go](https://golang.org/dl/) installed on your machine.
### Running Basic Examples
Navigate to the specific folder for each Go basic example and use the following commands:
```bash
# Change to the desired directory (replace [EXAMPLE_FOLDER] with the actual folder name)
cd go-practice-repo
```
# Run the example using go run
```
go run main.go
```
### Running the Book-Ticket App:
Navigate to the book-ticket folder and follow the steps below:# Change to the book-ticket directory
```
cd book-ticket
```# Build the executable
```
go build
```
# Run the executable
```
./book-ticket
```# Run in one command
```
go run filename.go
```
Directory Structure
book-ticket/: Contains the book-ticket app.
[go-practice-repo]/: Contains basic Go language examples.### Additional Information
*Go Build*: The go build command is used to compile the Go source code files into an executable binary. It creates an executable file in the current directory.
*Go Run*: The go run command is used to compile and run Go programs in one step. It compiles the program and then executes it without creating a separate executable.
Feel free to explore each example and the book-ticket app to learn more about Go programming!