Skip to content

This module contains a single function `Hello` that generates a personalized welcome message. It's designed to be imported and used in other Go applications.

Notifications You must be signed in to change notification settings

igorogi22/greetings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Greetings Module

A simple Go module that provides greeting functionality for use in other Go projects.

Overview

This module contains a single function Hello that generates a personalized welcome message. It's designed to be imported and used in other Go applications.

Installation

To use this module in your Go project, add it as a dependency:

go get igorogi22/greetings

Usage

Import the module in your Go code:

import "igorogi22/greetings"

Functions

Hello(name string) string

Generates a personalized greeting message.

Parameters:

  • name (string): The name of the person to greet

Returns:

  • string: A formatted greeting message

Example:

package main

import (
    "fmt"
    "igorogi22/greetings"
)

func main() {
    message := greetings.Hello("Alice")
    fmt.Println(message)
    // Output: Hi, Alice. Welcome!
}

Module Information

  • Module Path: igorogi22/greetings
  • Go Version: 1.23.4
  • Package: greetings

License

This module is provided as-is for educational and development purposes.

About

This module contains a single function `Hello` that generates a personalized welcome message. It's designed to be imported and used in other Go applications.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages