Skip to content

Instantly share code, notes, and snippets.

@infoverload
infoverload / generate-time-series-go.go
Created June 15, 2020 11:04
Accompanies the Generate Time Series in Go tutorial for CrateDB
package main
import (
"context"
"encoding/json"
"fmt"
"io/ioutil"
"log"
"net/http"
"time"

Keybase proof

I hereby claim:

  • I am infoverload on github.
  • I am 1nfoverload (https://keybase.io/1nfoverload) on keybase.
  • I have a public key ASDRaBGqpJ_atg9rp31CsixTweGAK-D3OLJFaMDyp0TlWAo

To claim this, I am signing this object:

package main
import "fmt"
type Node struct {
Data int
Next *Node
}
func removeDups(n *Node, seenValues map[int]bool) *Node {
package main
import (
"errors"
"fmt"
)
type argError struct {
arg int
prob string
package main
import "fmt"
type Node struct {
Data int
Next *Node
}
// deduplicates a linked list

Keybase proof

I hereby claim:

  • I am infoverload on github.
  • I am infoverload (https://keybase.io/infoverload) on keybase.
  • I have a public key ASAKcdDjn0o0CShRG20pbEUnqOHsFdfA8EQgJh2uBG3T_Qo

To claim this, I am signing this object: