func GetObject(oid string) (string, ObjectType, error) {
	objectPath := fmt.Sprintf("%s/%s/%s", UGIT_DIR, OBJECTS_DIR, oid)
	data, err := ioutil.ReadFile(objectPath)
	if err != nil {
		return "", ObjectType(""), err
	}
	parts := bytes.Split(data, []byte{BYTE_SEPARATOR})
	_type := ObjectType(parts[0])
	content := string(parts[1])
	return content, _type, err
}
/*
GetObject returns the content of the file, and its type
*/
GetObject returns the content of the file, and its type
/ * GetObject returns the content of the file and its type * /
func GetObject(oid string) (string, ObjectType, error) {
	objectPath := fmt.Sprintf("%s/%s/%s", UGIT_DIR, OBJECTS_DIR, oid)
	data, err := ioutil.ReadFile(objectPath)
	if err != nil {
		return "", ObjectType(""), err
	}
	parts := bytes.Split(data, []byte{BYTE_SEPARATOR})
	_type := ObjectType(parts[0])
	content := string(parts[1])
	return content, _type, err
}
func GetObject ( oid string ) ( string , ObjectType , error ) { objectPath := fmt . Sprintf ( " " , UGIT_DIR , OBJECTS_DIR , oid ) data , err := ioutil . ReadFile ( objectPath ) if err != nil { return " " , ObjectType ( " " ) , err } parts := bytes . Split ( data , [ ] byte { BYTE_SEPARATOR } ) _type := ObjectType ( parts [ 0 ] ) content := string ( parts [ 1 ] ) return content , _type , err }
GetObject returns the content of the file, and its type
GetObject returns the content of the file and its type