Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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!