Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| go_fedora_packages [2019/08/16 19:14] – [golang-src] rpjday | go_fedora_packages [2019/08/17 09:59] (current) – [Stuff] rpjday | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ===== Overview ===== | ===== Overview ===== | ||
| - | Basic Go-related packages for Fedora | + | golang on Fedora |
| ===== Base packages ===== | ===== Base packages ===== | ||
| - | ==== golang | + | * golang |
| + | * golang-src | ||
| + | * golang-bin | ||
| + | * go-srpm-macros | ||
| + | * dep | ||
| - | < | + | ===== go env ===== |
| - | $ rpm -qR golang | + | |
| - | go-srpm-macros | + | |
| - | golang-bin | + | |
| - | golang-src | + | |
| - | rpmlib(BuiltinLuaScripts) <= 4.2.2-1 | + | |
| - | rpmlib(CompressedFileNames) <= 3.0.4-1 | + | |
| - | rpmlib(FileDigests) <= 4.6.0-1 | + | |
| - | rpmlib(PayloadFilesHavePrefix) <= 4.0-1 | + | |
| - | rpmlib(PayloadIsXz) <= 5.2-1 | + | |
| - | $ | + | |
| - | </ | + | |
| - | + | ||
| - | ==== golang-bin ==== | + | |
| - | + | ||
| - | < | + | |
| - | $ rpm -ql golang-bin | wc -l | + | |
| - | 2349 | + | |
| - | $ | + | |
| - | </ | + | |
| - | + | ||
| - | ==== golang-src ==== | + | |
| - | + | ||
| - | < | + | |
| - | $ rpm -ql golang-src | wc -l | + | |
| - | 3111 | + | |
| - | $ | + | |
| - | </ | + | |
| - | + | ||
| - | ==== dep ==== | + | |
| < | < | ||
| - | $ rpm -qi dep | + | GOARCH=" |
| - | Name : dep | + | GOBIN="" |
| - | Version | + | GOCACHE="/ |
| - | Release | + | GOEXE="" |
| - | Architecture: | + | GOFLAGS="" |
| - | Install Date: Fri 16 Aug 2019 01:21:29 PM EDT | + | GOHOSTARCH=" |
| - | Group : Unspecified | + | GOHOSTOS=" |
| - | Size : 17864111 | + | GOOS=" |
| - | License | + | GOPATH=" |
| - | Signature | + | GOPROXY="" |
| - | Source RPM : dep-0.5.1-1.fc30.src.rpm | + | GORACE="" |
| - | Build Date : Tue 19 Mar 2019 03:17:05 PM EDT | + | GOROOT="/ |
| - | Build Host : buildvm-07.phx2.fedoraproject.org | + | GOTMPDIR="" |
| - | Relocations : (not relocatable) | + | GOTOOLDIR=" |
| - | Packager | + | GCCGO=" |
| - | Vendor | + | CC=" |
| - | URL : https://github.com/golang/dep | + | CXX=" |
| - | Bug URL : https://bugz.fedoraproject.org/ | + | CGO_ENABLED=" |
| - | Summary | + | GOMOD="" |
| - | Description : | + | CGO_CFLAGS=" |
| - | Go dependency management tool | + | CGO_CPPFLAGS="" |
| - | $ | + | CGO_CXXFLAGS=" |
| + | CGO_FFLAGS=" | ||
| + | CGO_LDFLAGS=" | ||
| + | PKG_CONFIG=" | ||
| + | GOGCCFLAGS=" | ||
| </ | </ | ||
| - | ===== Interesting additional Fedora packages | + | ===== Stuff ===== |
| - | ... added as they occur to me ... | + | * env vars |
| + | * GOPATH (workspace) | ||
| + | * GOROOT (install dir) | ||
| + | * " | ||
| + | * uppercase symbols are automatically exported (math.Pi) | ||
| + | * functions | ||
| + | * return type *trails* function prototype | ||
| + | * no need to duplicate consecutive arg types (x, y int) | ||
| + | * multiple return values " | ||
| + | * named return values "func split(sum int) (x, y int) {" | ||
| + | * variables | ||
| + | * "var c, python, java bool" | ||
| + | * initializers "var i, j int = 10, 20" | ||
| + | * short implicit in-function form "k := 3" | ||
| + | * type conversions are necessary | ||
| + | * loops | ||
| + | * for [init] ; cond ; [iter] { | ||
| + | * for cond { | ||
| + | * | ||