News for hackers. Stuff that matters.
Re:Go Contracts – Draft Design by utahcon on Tuesday July 30, 2019 @03:25PM (#20568246)
Honestly asking what "generics" offers over passing and handling interface{}.

  func myBlah(thing interface{}){
    switch thing.(type) {
      case int:
        // handle my int
      case string:
        // handle my string
      default:
        // default handling
    }
  }
Re:Go Contracts – Draft Design by cjslep on Wednesday July 31, 2019 @02:13AM (#20572063)
See [0] which is a code generated piece of the ActivityStreams spec. As it is RDF based, it is an open ended set. Not worth doing by hand.

[0] https://github.com/go-fed/activity/blob/master/streams/gen_t...