Skip to content

Instantly share code, notes, and snippets.

View amityt's full-sized avatar
⚛️
Creating Chaos

Amit Kumar Das amityt

⚛️
Creating Chaos
View GitHub Profile
@amityt
amityt / calculate_test.go
Created March 16, 2023 11:39
Go interfaces and test cases
package main
import "testing"
type calculateTest struct {
arg1, arg2, expectedResult int
}
var addTests = []calculateTest{
{2, 3, 5},