diff --git a/async/promise.go b/promise/promise.go similarity index 97% rename from async/promise.go rename to promise/promise.go index ebf5a7c..6e41369 100644 --- a/async/promise.go +++ b/promise/promise.go @@ -1,8 +1,8 @@ // Copyright 2023 dudaodong@gmail.com. All rights reserved. // Use of this source code is governed by MIT license -// Package async contain some featurese to support async programming. eg, promise, asycn/await, eventbus. -package async +// Package promise contains some functions to support async programming. +package promise import ( "errors" diff --git a/async/promise_example_test.go b/promise/promise_example_test.go similarity index 99% rename from async/promise_example_test.go rename to promise/promise_example_test.go index 6b06df3..0494d43 100644 --- a/async/promise_example_test.go +++ b/promise/promise_example_test.go @@ -1,4 +1,4 @@ -package async +package promise import ( "errors" diff --git a/async/promise_test.go b/promise/promise_test.go similarity index 99% rename from async/promise_test.go rename to promise/promise_test.go index bccb48b..0201c26 100644 --- a/async/promise_test.go +++ b/promise/promise_test.go @@ -1,4 +1,4 @@ -package async +package promise import ( "errors"