Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
go_fedora_packages [2019/08/16 19:14] – [golang-src] rpjdaygo_fedora_packages [2019/08/17 09:59] (current) – [Stuff] rpjday
Line 1: Line 1:
 ===== Overview ===== ===== Overview =====
  
-Basic Go-related packages for Fedora 28 (beta).+golang on Fedora 30 ... and beyond.
  
 ===== Base packages ===== ===== Base packages =====
  
-==== golang ====+  * golang 
 +    * golang-src 
 +    * golang-bin 
 +    * go-srpm-macros 
 +  * dep
  
-<code> +===== go env =====
-$ rpm -qR golang +
-go-srpm-macros +
-golang-bin 1.10.1-1.fc28 +
-golang-src 1.10.1-1.fc28 +
-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 +
-+
-</code> +
- +
-==== golang-bin ==== +
- +
-<code> +
-$ rpm -ql golang-bin | wc -l +
-2349 +
-+
-</code> +
- +
-==== golang-src ==== +
- +
-<code> +
-$ rpm -ql golang-src | wc -l +
-3111 +
-+
-</code> +
- +
-==== dep ====+
  
 <code> <code>
-$ rpm -qi dep +GOARCH="amd64" 
-Name        : dep +GOBIN="" 
-Version     : 0.5.1 +GOCACHE="/home/rpjday/.cache/go-build" 
-Release     : 1.fc30 +GOEXE="" 
-Architecture: x86_64 +GOFLAGS="" 
-Install Date: Fri 16 Aug 2019 01:21:29 PM EDT +GOHOSTARCH="amd64" 
-Group       : Unspecified +GOHOSTOS="linux" 
-Size        : 17864111 +GOOS="linux" 
-License     : BSD +GOPATH="/home/rpjday/go"               [personal workspace] 
-Signature   : RSA/SHA256, Tue 19 Mar 2019 03:35:16 PM EDT, Key ID ef3c111fcfc659b9 +GOPROXY="" 
-Source RPM  : dep-0.5.1-1.fc30.src.rpm +GORACE="" 
-Build Date  : Tue 19 Mar 2019 03:17:05 PM EDT +GOROOT="/usr/lib/golang"               [Go installation workspace] 
-Build Host  : buildvm-07.phx2.fedoraproject.org +GOTMPDIR="" 
-Relocations : (not relocatable) +GOTOOLDIR="/usr/lib/golang/pkg/tool/linux_amd64" 
-Packager    : Fedora Project +GCCGO="gccgo" 
-Vendor      : Fedora Project +CC="gcc" 
-URL         : https://github.com/golang/dep +CXX="g++" 
-Bug URL     : https://bugz.fedoraproject.org/dep +CGO_ENABLED="1" 
-Summary     : Go dependency management tool +GOMOD="" 
-Description : +CGO_CFLAGS="-g -O2" 
-Go dependency management tool +CGO_CPPFLAGS="" 
-$+CGO_CXXFLAGS="-g -O2" 
 +CGO_FFLAGS="-g -O2" 
 +CGO_LDFLAGS="-g -O2" 
 +PKG_CONFIG="pkg-config" 
 +GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build215138165=/tmp/go-build -gno-record-gcc-switches"
 </code> </code>
  
-===== Interesting additional Fedora packages =====+===== Stuff =====
  
-... added as they occur to me ...+  * env vars 
 +    * GOPATH (workspace) 
 +    * GOROOT (install dir) 
 +  * "factored" import statement 
 +  * 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 "(string, int)" 
 +    * 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 {             ["while"
 +    * 
  • go_fedora_packages.1565982860.txt.gz
  • Last modified: 2019/08/16 19:14
  • by rpjday