# command-line-arguments
.\main.go:5:4: no new variables on left side of :=
package main
import “fmt”
func main(){
var b int;
b := 1;
fmt.Println(b);
}
The correct way to write it: remove the : or add a new variable
package main
import “fmt”
func main(){
var b int;
b,a := 1,2;
fmt.Println(b,a);
}
// No compile error is generated at this point because a new variable is declared, because := is a declaration statement
Read More:
- Go run error go run: cannot run non main package
- Command line is too long. Shorten command line for QuestionnaireApplication or also for Spring Boot
- Error running ‘application’: command line is too long. Short command line for application
- Go test print no output
- The Java command could not find or load the main class
- Solution to command line option syntax error. Type command /? For help
- -bash: cannot create temp file for here-document: No space left on device
- Linux command line cursor moving skills
- Error splicing file: No space left on device
- The solution of no space left on device always appears when using TF’s debug tool (tfdbg)
- docker:Failed to add /run/systemd/ask-password to directory watch: No space left on device
- error adding symbols: DSO missing from command line
- Failed to add /run/systemd/ask-password to directory watch: No space left on device?
- cenos Upgrade g++ gcc(cc1plus: error: unrecognized command line option “-std=c++11”)
- Go get github.com/kotakanbe/go -Problems encountered in CVE dictionary Download
- Solution of command line window flashback when visual studio runs C + + program
- Three solutions to command line flashback in VS
- Idea: error running Name: command line is too long
- Solution to the problem that SQL database query result field contains new line character, which leads to copy to excel dislocation