panic stacktrace inlined vs not-inlined.
For this code:
package main
var x map[string]string
func add(a, b string) {
x[a] = b
type block struct { | |
height int64 | |
time time.Time | |
diff *big.Int | |
} |
"github.com/golang/groupcache/consistenthash" | |
100000 keys over 3 buckets | |
cacheA: 47356 | |
cacheC: 11779 | |
100000 keys over 9 buckets | |
cacheH: 10091 | |
cacheI: 30516 | |
cacheG: 7133 |
static const int64 nTargetSpacing = 2.5 * 60; // Guldencoin: 2.5 minutes between block | |
unsigned int static DarkGravityWave3(const CBlockIndex* pindexLast, const CBlockHeader *pblock) { | |
/* current difficulty formula, darkcoin - DarkGravity v3, written by Evan Duffield - evan@darkcoin.io */ | |
const CBlockIndex *BlockLastSolved = pindexLast; | |
const CBlockIndex *BlockReading = pindexLast; | |
const CBlockHeader *BlockCreating = pblock; | |
BlockCreating = BlockCreating; | |
int64 nActualTimespan = 0; |
package main | |
import ( | |
"fmt" | |
"github.com/conformal/btcrpcclient" | |
"log" | |
"sort" | |
) | |
// blockCount defines the number of blocks back into history we wish to inspect. |
panic stacktrace inlined vs not-inlined.
For this code:
package main
var x map[string]string
func add(a, b string) {
x[a] = b
package linenoise | |
// +linux | |
// #include <stdlib.h> | |
// #include "linenoise.h" | |
import "C" | |
import ( | |
"unsafe" |
import XMonad | |
import XMonad.Hooks.InitialStartupHook | |
import XMonad.Layout.LayoutScreens | |
import XMonad.Layout.TwoPane | |
import XMonad.Hooks.InsertPosition | |
import XMonad.Hooks.DynamicLog | |
import XMonad.Hooks.ManageDocks | |
import XMonad.Util.Run(spawnPipe) | |
import XMonad.Util.EZConfig(additionalKeysP) | |
import XMonad.Hooks.SetWMName |
#!/bin/bash | |
# Author: slowpoke <proxypoke at lavabit dot com> | |
# | |
# Copying and distribution of this file, with or without modification, | |
# are permitted in any medium without royalty provided the copyright | |
# notice and this notice are preserved. This file is offered as-is, | |
# without any warranty. | |
# | |
# A pre-commit hook for go projects. In addition to the standard |
Regexp: `(?:(?:^\[?\[([a-zA-Z0-9\- ]+)\])|([.\n\r]+))*` | |
Input: "[red] blabla [[ escaped? [bla-fd] ]] escaped?" | |
Output(fmt %#v): []string{"[red]", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""} | |
Expected: []string{"[red]", " blabla [[ escaped? ", "[bla-fd]", " ]] escaped?"} | |
Regexp: \[([^\]]+)\] | |
Input: "[red] blabla [[ escaped? [bla-fd] ]] escaped?" | |
Output(fmt %#v): [][]int{[]int{0, 5}, []int{13, 33}} |
package main | |
import ( | |
"fmt" | |
"tc" //terminal color | |
) | |
// First syntax idea | |
// Please skip this and take a look at the second idea. |