harbor run -t openthoughts/tasktrove-exp-rpt-stack-go-v4-stack-go-2413
harbor download openthoughts/tasktrove-exp-rpt-stack-go-v4-stack-go-2413
Task Description: Implement the PackageHeader struct and its methods for packing and unpacking data.
Functionality Requirement:
PackageHeader
/app/
Pack(buffer *[]byte)
Unpack(header []byte)
Specific Requirements:
Pack
Unpack
By fulfilling these requirements, the tests TestPack and TestUnpack will pass successfully.
TestPack
TestUnpack
Important: declare your solution in package packer (the test file uses package packer, so the implementation must use the matching package name).
package packer