code: func Load(data []byte) (*clientcmdapi.Config, error) {
  	config := clientcmdapi.NewConfig()
  	// if there's no data in a file, return the default object instead of failing (DecodeInto reject empty input)
  	if len(data) == 0 {
  		return config, nil
  	}
  	decoded, _, err := clientcmdlatest.Codec.Decode(data, &schema.GroupVersionKind{Version: clientcmdlatest.Version, Kind: "Config"}, config)
  	if err != nil {
  		return nil, err
  	}
  	return decoded.(*clientcmdapi.Config), nil
  }
docs: // Load takes a byte slice and deserializes the contents into Config object.
  // Encapsulates deserialization without assuming the source is a file.