oficina / equipo Public

Clone
git clone https://amadan.net/oficina/equipo

Plain git — no account needed to clone.

Download

Download this file

1package runnerproto
2
3import "encoding/json"
4
5// CanonicalJSON keeps stored answer comparisons independent of object key order.
6func (a QuestionAnswer) CanonicalJSON() ([]byte, error) {
7 raw, err := json.Marshal(a)
8 if err != nil {
9 return nil, err
10 }
11 var value any
12 if err = json.Unmarshal(raw, &value); err != nil {
13 return nil, err
14 }
15 return json.Marshal(value)
16}
17