dev-resources.site
for different kinds of informations.
Problems with packages in Go
Published at
8/28/2022
Categories
go
packages
beginners
Author
jaenmo
Author
6 person written this
jaenmo
open
I'm having problems to use packages. I a following literally the steps I find online, but I have an error message.
I have this package in GOPATH:
go/src/greet/day.go
package greet
var morning = "Good morning"
var Morning = "hey" + morning
I want to import it in my code:
go/src/app/entry.go
package main
import ("fmt"
"greet")
func main(){
fmt.Println(greet.Morning)
}
When I run entry.go, I receive this message: entry.go:4:3: package greet is not in GOROOT (/usr/local/go/src/greet)
Does anybody how to fix it?
Thank you.
packages Article's
30 articles in total
Exploring the Coastal Beauty of the Turkish Riviera
read article
Simplifying State Management in Laravel: Managing Transitions with Enum StateΒ Machine
read article
Task-Python Packages
read article
Agra Honeymoon Packages
read article
Agra Family Packages
read article
Testando e Implementando Pacotes Laravel: Um Guia Passo a Passo
read article
Popular Packages for Express.js
read article
Discover Paris: Your Ultimate Tour Package from Chennai
read article
Learn to create your own ROS2 Workspace, Custom Packages, Publisher and Subscriber.
read article
Publicando seus packages no pub.dev
read article
How I wrote a package manager in JavaScript
read article
Easily Create Your Own Private NPM Registry Using Verdaccio
read article
Laravel Deployer Free package for laravel and nodejs apps Deployment
read article
Embark on a Spiritual Journey: Umrah Group Packages for 2024
read article
Jazz Monthly Data Package
read article
Georgia Travel Tips for First-time Visitors
read article
The one thing I do not like about the Nix package manager (and a fix for it)
read article
Can't find Process Explorer after installing it via winget? Do this
read article
Develop anywhere - A practical guide to using packages with webMethods.io
read article
My process for writing Laravel packages
read article
What are Packages and How we can use it?
read article
Best Kerala Honeymoon Packages From Seasonz India Holidays
read article
Creating and Publishing Dart Packages for Flutter
read article
Backup manually installed libraries and packages in Ubuntu
read article
Unleashing the Power of Julia: Top 5 Must-Have Packages
read article
NPM Vs. Yarn: How do they compare?
read article
Recalling NPM Commands to Your Heart's Content
read article
Python generated jokes ππ€£
read article
Problems with packages in Go
currently reading
The hidden cost of packages and how to avoid it
read article
Featured ones: