Implement the functionality for the FeatureID, NodeID, WayID, and RelationID types in Go as outlined by the following requirements:
Types and Methods:
Define the FeatureID, NodeID, WayID, and RelationID types.
Implement the FeatureID(), NodeID(), WayID(), and RelationID() methods on these types that return the respective IDs.
Implement a Type() method for FeatureID that returns the type of the feature as a string (e.g., "node", "way", "relation").
Implement a Ref() method that returns the reference number for each feature type.
Implement a Version() method that returns an integer indicating the version of the feature.
String Representation:
Implement a String() method for FeatureID that returns a string representation in the format "type/id" (e.g., "node/1", "way/3", "relation/1000").
Ensure that if the FeatureID is invalid, it returns "unknown/0".
Parsing Functionality:
Implement a ParseFeatureID(string) (FeatureID, error) function that parses a string in the format "type/id" and returns the corresponding FeatureID.
Return an error if the format is invalid, such as if the input is incorrectly formatted (e.g., missing parts or non-numeric ID).
Collection Functionality:
Define a FeatureIDs type as a slice of FeatureID.
Implement a Counts() method that returns the counts of nodes, ways, and relations present in the FeatureIDs.
Implement a Sort() method to sort the FeatureIDs slice based on the type and id.
Testing:
Ensure all functionalities pass the provided tests in osm_test.go.
Write tests to verify panic conditions when invalid methods are called on FeatureID based on the type.
Place your implementation in /app/ directory under the necessary Go files (e.g., feature.go, feature_id.go, etc.) that logically separate the functionality.
Important: declare your solution in package osm (the test file uses package osm, so the implementation must use the matching package name).