https://github.com/isinghabhishek/go-booking_app-cli
Creating a ticket Booking App Command Line Interface(CLI) using Go language.
https://github.com/isinghabhishek/go-booking_app-cli
cli go-cli golang
Last synced: 11 months ago
JSON representation
Creating a ticket Booking App Command Line Interface(CLI) using Go language.
- Host: GitHub
- URL: https://github.com/isinghabhishek/go-booking_app-cli
- Owner: isinghabhishek
- License: apache-2.0
- Created: 2023-03-02T07:52:39.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-26T18:13:51.000Z (almost 3 years ago)
- Last Synced: 2025-01-11T09:38:34.861Z (over 1 year ago)
- Topics: cli, go-cli, golang
- Language: Go
- Homepage:
- Size: 16.6 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# go-booking_app-CLI
Creating a ticket Booking App Command Line Interface(CLI) using Go language.
The basic syntax of Golang is similar to other C-style languages, but there are some important differences to be aware of. Golang is a statically-typed language, which means you need to declare the type of each variable when you define it. Golang also uses curly braces to define blocks of code, and semicolons are optional at the end of each statement.
Golang has a simple and concise syntax that is easy to learn. Here are the basic syntax elements of Golang:
- Variables: Variables in Golang are declared using the var keyword followed by the variable name and the data type. For example: var age int = 30.
- Data Types: Golang has several built-in data types, including integers, floats, strings, booleans, arrays, slices, maps, and structs.
- Control Structures: Golang has the standard control structures found in most programming languages, including if statements, for loops, switch statements, and defer statements.