Commit d8d555e

mo khan <mo@mokhan.ca>
2021-10-13 18:46:21
feat: add Let alias
1 parent 80c70d4
Changed files (1)
spec/spec.go
@@ -33,11 +33,15 @@ func (c *Context) It(it ItFunc) {
 	c.its = append(c.its, it)
 }
 
-func (c *Context) Set(key string, value interface{}) *Context {
+func (c *Context) Let(key string, value interface{}) *Context {
 	c.state[key] = value
 	return c
 }
 
+func (c *Context) Set(key string, value interface{}) *Context {
+	return c.Let(key, value)
+}
+
 func (c *Context) Get(key string) interface{} {
 	return c.state[key]
 }