code: func (f *TableFile) GetResource(id ResID, config *ResTableConfig) (interface{}, error) {
  	p := f.findPackage(id.Package())
  	if p == nil {
  		return nil, fmt.Errorf("androidbinary: package 0x%02X not found", id.Package())
  	}
  	e := p.findEntry(id.Type(), id.Entry(), config)
  	v := e.Value
  	if v == nil {
  		return nil, fmt.Errorf("androidbinary: entry 0x%04X not found", id.Entry())
  	}
  	switch v.DataType {
  	case TypeNull:
  		return nil, nil
  	case TypeString:
  		return f.GetString(ResStringPoolRef(v.Data)), nil
  	case TypeIntDec:
  		return v.Data, nil
  	case TypeIntHex:
  		return v.Data, nil
  	case TypeIntBoolean:
  		return v.Data != 0, nil
  	}
  	return v.Data, nil
  }
docs: // GetResource returns a resrouce referenced by id.