Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bryancastillo10/go-fundamentals
https://github.com/bryancastillo10/go-fundamentals
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/bryancastillo10/go-fundamentals
- Owner: bryancastillo10
- Created: 2024-10-27T02:14:02.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-11-06T11:42:49.000Z (3 months ago)
- Last Synced: 2024-11-20T17:51:39.437Z (2 months ago)
- Language: Go
- Size: 158 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
Awesome Lists containing this project
README
### Go Programming Language
![alt text](image.png)
Print Formatter (fmt.Printf)
| syntax | description|
| --- | --- |
| %v |the value in a default format |
when printing structs, the plus flag (%+v) adds field names
|%#v |a Go-syntax representation of the value|
(floating-point infinities and NaNs print as ±Inf and NaN)
|%T |a Go-syntax representation of the type of the value|
|%% |a literal percent sign; consumes no value|
| %t | the word true or false |more info at https://pkg.go.dev/fmt
```
package mainimport fmt
func main(){
var test string = "Go Language"
fmt.Println(test)
}
```