utils_test.go 535 B

12345678910111213141516171819202122
  1. // Copyright GoFrame gf Author(https://goframe.org). All Rights Reserved.
  2. //
  3. // This Source Code Form is subject to the terms of the MIT License.
  4. // If a copy of the MIT was not distributed with this file,
  5. // You can obtain one at https://github.com/gogf/gf.
  6. package utils_test
  7. import (
  8. "fmt"
  9. "testing"
  10. "github.com/gogf/gf/cmd/gf/v2/internal/utility/utils"
  11. "github.com/gogf/gf/v2/test/gtest"
  12. )
  13. func Test_GetModPath(t *testing.T) {
  14. gtest.C(t, func(t *gtest.T) {
  15. goModPath := utils.GetModPath()
  16. fmt.Println(goModPath)
  17. })
  18. }