harbor run -t openthoughts/tasktrove-exp-rpt-stack-go-v4-stack-go-6605harbor download openthoughts/tasktrove-exp-rpt-stack-go-v4-stack-go-6605Task Description: Implement an Assertion Library in Go
You need to implement a simple assertion library in Go that provides various assertion methods for testing. The library should include the following functionalities:
Assertion for Nil Values:
IsNil(actual interface{}) that checks if the passed actual value is nil.actual being nil or not, according to the test cases.Assertion for Not Nil Values:
IsNotNil(actual interface{}) that checks if the passed actual value is not nil.actual is not nil and return the result accordingly, based on the test cases.Assertion for Boolean Values:
IsTrue(actual interface{}) to assert that the passed actual value is true.IsFalse(actual interface{}) to assert that actual is false.Any Value Assertions:
IsEqualTo(actual interface{}, expected interface{}) to check if the actual value is equal to an expected value.HasTypeOf(actual interface{}, expectedType reflect.Type) to assert that the type of actual matches the provided expectedType.Specific Requirements:
/app/ directory.shouldFail in the test cases to determine how each assertion should work.Please ensure that all functionalities are thoroughly tested against the provided tests, and the implementation is clean and well-structured.
Important: declare your solution in package assert (the test file uses package assert, so the implementation must use the matching package name).