Skip to content

neelkumar01/testmodule

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Golang testmodule

A simple Go module with a SayHello function to print greetings.

πŸ“¦ Installation

Create a go.mod file in your project

go mod init testproject

Use go get to install the module:

go get github.com/neelkumar01/testmodule

This will download the module and add it to your project dependencies and you will be able to see 2 files, go.mod and go.sum being created in your project.

βš™οΈ Usage

Import the module in your Go code:

package main

import (
    "github.com/neelkumar01/testmodule"
)

func main() {
    testmodule.SayHello("Neel")
}

🧩 Output

Hello Neel

πŸ—‚οΈ Project structure

testmodule/
β”œβ”€β”€ code.go
└── go.mod

About

A simple go module to get hands on implementation building modules in go

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages