Difference between revisions of "Go Gettng Started"

From UVOO Tech Wiki
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 2: Line 2:
  
 
```
 
```
 +
mkdir foo
 +
cd foo
 
vim a.go
 
vim a.go
go mod tidy foo
+
go mod init example1
 
go mod tidy
 
go mod tidy
 
go build a.go
 
go build a.go
 
./a
 
./a
 
```
 
```

Latest revision as of 00:16, 19 December 2023

https://www.wolfe.id.au/2020/03/10/starting-a-go-project/

mkdir foo
cd foo
vim a.go
go mod init example1
go mod tidy
go build a.go
./a