https://github.com/devhindo/goref
my reference to Go
https://github.com/devhindo/goref
Last synced: 2 months ago
JSON representation
my reference to Go
- Host: GitHub
- URL: https://github.com/devhindo/goref
- Owner: devhindo
- License: mit
- Created: 2024-05-15T01:17:51.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-15T01:28:23.000Z (almost 2 years ago)
- Last Synced: 2025-05-22T01:11:31.392Z (10 months ago)
- Homepage:
- Size: 1.95 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Table of Contents
- [keywords](#keywords)
- [builtin functions](#builtin-functions)
- [standard library](#standard-library)
- [common packages](#common-packages)
## keywords
(25 keyword)
- `package`: defines a package.
- `import`: imports a package.
- `func`: defines a function.
- `return`: exits a function.
- `var`: declares a variable.
- `const`: declares a constant.
- `type`: declares a type.
- `struct`: defines a new data type.
- `break`: exits a loop.
- `case`: a case inside a switch statement.
- `chan`: defines a new channel.
- `defer`: defers a function.
- `else`: else statement.
- `fallthrough`: transfers control to the next case.
- `for`: loop keyword.
- `go`: starts a goroutine.
- `if`: if statement.
- `interface`: defines an interface.
- `map`: defines a map.
- `range`: iterates over items in a variety of data structures.
- `select`: works with channels.
- `switch`: works with multiple conditions.
## builtin functions
- `len()`: returns the length of `v` according to its type. | `func len(v Type) int`
- `cap()`: returns the capacity of a slice.
- `append()`: appends elements to a slice | `func append(slice []Type, elems ...Type) []Type`
- `copy()`: copies elements from one slice to another.
## standard library
- `fmt`: formatting I/O.
- `os`: operating system interfaces.
- `io`: basic I/O interfaces.
## common packages