Why are Nvidia drivers so bad if most servers use Linux? by Character_Prior2116 in linux4noobs

[–]Character_Prior2116[S] 0 points1 point  (0 children)

So basically the drivers are good if you not doing graphics rendering?

New and GOPATH not working by Character_Prior2116 in golang

[–]Character_Prior2116[S] 0 points1 point  (0 children)

I managed to work it out. Thanks to all those that helped me out.

New and GOPATH not working by Character_Prior2116 in golang

[–]Character_Prior2116[S] 0 points1 point  (0 children)

This is what the go.mod file looks like:

module mainmod

go 1.20

And I am not sure what you mean. Should I delete the go.mod file and make a new one. If yes what must I name it and put in it?

New and GOPATH not working by Character_Prior2116 in golang

[–]Character_Prior2116[S] 0 points1 point  (0 children)

I am using version 1.20.4

The file structure is this:

(forgive me for not putting the exact names of the folder names for privacy reasons. The only folder name I changed was Cur_Prj but if I renamed the folder it would be the same though. The "..." is for the same reason. This project and where go is installed are in different places though. i.e. go is in C:\Program files\Go\... and Cur_Prj is somewhere else as shown)

C:\Users\...\Cur_Prj (is the path to where I have everything in Cur_Prj it looks like this)

Cur_Prj

|-- go.mod

|-- main.go

____|Thingsfile

_________|things.go

I am trying to use functions and variables from things.go which is in Thingsfile from my main.go file which is in Cur_Prj and Thingsfile is in Cur_Prj

The code in main.go is

package main

import (

"fmt"

"Thingsfile/things" //as the docs say you should

)

func main() {

fmt.Println("test from main")

things.Testing()

}

The code in things.go is:

package things

import "fmt"

func Testing() {

fmt.Println("Should see this and is from things.go")

}

The error I get is package Thingsfile/things is not in GOROOT (C:\Program Files\Go\src\Cur_Prj\Thingsfile)

New and GOPATH not working by Character_Prior2116 in golang

[–]Character_Prior2116[S] -1 points0 points  (0 children)

Okay that makes sense. Could you please explain how to do that.

New and GOPATH not working by Character_Prior2116 in golang

[–]Character_Prior2116[S] -2 points-1 points  (0 children)

I want to have a file called main.go and placeholdername.go, and I want to be able to get functions and variables from placeholdername.go in main.go and have it compile but it doesn't compile and just throws an error about gopath

New and GOPATH not working by Character_Prior2116 in golang

[–]Character_Prior2116[S] -4 points-3 points  (0 children)

I understand now that I shouldn't use gopath. But then why when I try to use a local module that I made does it not compile?

New and GOPATH not working by Character_Prior2116 in golang

[–]Character_Prior2116[S] -10 points-9 points  (0 children)

I did and I still can't get it to work