code: func resolveStreams(c context.Context, options userOptions) ([]*coordinator.LogStream, error) {
  	prefix, name := options.path.Split()
  	streams := []*coordinator.LogStream{}
  	var err error
  	if options.wildcard {
  		q := datastore.NewQuery("LogStream").Eq("Prefix", prefix.String()).Eq("Purged", false)
  		err = datastore.GetAll(c, q, &streams)
  	} else {
  		streams = append(streams, &coordinator.LogStream{ID: coordinator.LogStreamID(options.path)})
  		err = datastore.Get(c, streams[0])
  	}
  
  	switch {
  	case len(streams) == 0, datastore.IsErrNoSuchEntity(err):
  		return nil, coordinator.ErrPathNotFound
  	case err != nil:
  		return nil, err
  	case !options.wildcard:
  		// If the user requested HTML format, check to see if the stream is a binary or datagram stream.
  		// If so, then this mode is not supported, and instead just render a link to the supported mode.
  		if options.isHTML() && streams[0].StreamType != logpb.StreamType_TEXT {
  			err = errRawRedirect
  		}
  		return streams, err
  	}
  
  	result := matchStreams(streams, name.String())
  	if len(result) == 0 {
  		return nil, coordinator.ErrPathNotFound
  	}
  	return result, nil
  }
docs: // resolveStreams takes a path containing a wildcard and resolves it to the list
  // of all known paths.  Purge checks are also performed here.