Inhalt:
- Editor/IDE, gofmt, golint
- main.go, hello world
- GOPATH
- main/library
- Sprachkonstrukte, if/switch/var/const/go struct/type, slices/arrays, maps/channel
- chat server?
- go test, coverage
- profiling
- serialisierung (xml, json)
Inhalt:
#!/bin/sh | |
/usr/bin/time -f '%Uu %Ss %er %MkB %C' "$@" |
package main | |
import ( | |
"fmt" | |
"os" | |
"os/exec" | |
"os/signal" | |
"syscall" | |
"time" | |
"unsafe" |
package main | |
import ( | |
"fmt" | |
"os" | |
"os/exec" | |
"os/signal" | |
"syscall" | |
) |
package main | |
import ( | |
"fmt" | |
"os" | |
"os/exec" | |
"os/signal" | |
"syscall" | |
) |
// an example to create a new mapping `ctrl-y` | |
//mapkey('<Ctrl-y>', 'Show me the money', function() { | |
// Front.showPopup('a well-known phrase uttered by characters in the 1996 film Jerry Maguire (Escape to close).'); | |
//}); | |
// an example to replace `u` with `?`, click `Default mappings` to see how `u` works. | |
//map('?', 'u'); | |
// an example to remove mapkey `Ctrl-i` | |
//unmap('<Ctrl-i>'); |
# Maintainer: Egor Kovetskiy <[email protected]> | |
pkgname=gtm | |
pkgver=20171203.337_6ee3a02 | |
pkgrel=1 | |
pkgdesc="git time metrics" | |
arch=('i686' 'x86_64') | |
license=('GPL') | |
depends=( | |
) | |
makedepends=( |
#!/bin/sh | |
/usr/bin/time -f '%Uu %Ss %er %MkB %C' "$@" |
// an example to create a new mapping `ctrl-y` | |
//mapkey('<Ctrl-y>', 'Show me the money', function() { | |
// Front.showPopup('a well-known phrase uttered by characters in the 1996 film Jerry Maguire (Escape to close).'); | |
//}); | |
// an example to replace `u` with `?`, click `Default mappings` to see how `u` works. | |
//map('?', 'u'); | |
// an example to remove mapkey `Ctrl-i` | |
//unmap('<Ctrl-i>'); |