From 1cd3be508ce694a0954615ad9227edbb1a038b75 Mon Sep 17 00:00:00 2001 From: dudaodong Date: Fri, 24 Mar 2023 11:43:56 +0800 Subject: [PATCH] refactor rename async package name to --- {async => promise}/promise.go | 4 ++-- {async => promise}/promise_example_test.go | 2 +- {async => promise}/promise_test.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) rename {async => promise}/promise.go (97%) rename {async => promise}/promise_example_test.go (99%) rename {async => promise}/promise_test.go (99%) 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"