37}
38
39// defaultV return default value of type V if v[] is empty
40func defaultV[V any](v []V) V {41 if len(v) > 0 {
42 return v[0]
43 }
13 dnaGIF []byte
14 //go:embed testFiles/a9s.jpg
15 a9sJPG []byte
16 //go:embed testFiles/a9s.png17 a9sPNG []byte
18 //go:embed testFiles/a9s.webp
19 a9sWEBP []byte
Failed to compile the code. Check occurrence description for syntax errors.