Skip to content

jgryszko/go-template

Repository files navigation

Template Go Project

This is a simple Go project that greets the user with a name provided via the --name parameter.

How to Install Dependencies

Before running or building the project, install the dependencies specified in go.mod by running the following command:

go mod tidy

## How to Run

1. Build the project:

    ```bash
    go build -o helloapp ./cmd/helloapp
    ```

2. Run the app:

    ```bash
    ./helloapp --name Joe
    ```

   You can also run without `--name` to use the default value from the config:

    ```bash
    ./helloapp
    ```

    Output:

    ```
    Hello, Joe
    ```

    or with the default:

    ```
    Hello, World
    ```

## Running Unit Tests

To run the tests, use:

```bash
go test ./...

# My Go Project

This is a simple Go project that greets the user with a name provided via the `--name` parameter.

## How to Build the Project

You can generate an executable named `greeter` by running the following command:

```bash
go build -o greeter ./cmd/helloapp

## Conclsions

Just use as a starting point

About

template for my personal go projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published