code: func getVisualInfo(X *xgbutil.XUtil, depth byte,
  	visualid xproto.Visualid) *xproto.VisualInfo {
  
  	for _, depthInfo := range X.Screen().AllowedDepths {
  		fmt.Printf("%#v\n", depthInfo)
  		// fmt.Printf("%#v\n", depthInfo.Visuals)
  		fmt.Println("------------")
  		if depthInfo.Depth == depth {
  			for _, visual := range depthInfo.Visuals {
  				if visual.VisualId == visualid {
  					return &visual
  				}
  			}
  		}
  	}
  	return nil
  }
docs: // getVisualInfo searches SetupInfo for a VisualInfo value matching
  // the depth provided.
  // XXX: This isn't used (yet).