2 desc "App development framework of Golang"
3 homepage "https://goframe.org"
4 url "https://github.com/gogf/gf/archive/refs/tags/v2.8.3.tar.gz"
5 sha256 "ade95d6d2f0d37c50be400fb6988c8c0d4dad560c46a5d49fc689f3968a72e60"
7 head "https://github.com/gogf/gf.git", branch: "master"
10 sha256 cellar: :any_skip_relocation, arm64_sequoia: "2022193b52c7b8a9176e0cc575b214a16cf8236070278e6184d485a4c8b1d5d9"
11 sha256 cellar: :any_skip_relocation, arm64_sonoma: "2022193b52c7b8a9176e0cc575b214a16cf8236070278e6184d485a4c8b1d5d9"
12 sha256 cellar: :any_skip_relocation, arm64_ventura: "2022193b52c7b8a9176e0cc575b214a16cf8236070278e6184d485a4c8b1d5d9"
13 sha256 cellar: :any_skip_relocation, sonoma: "1b00ebfda3dab63aeddaf916aff12d31365ed836b867fc85c4d174bd72ff5e59"
14 sha256 cellar: :any_skip_relocation, ventura: "1b00ebfda3dab63aeddaf916aff12d31365ed836b867fc85c4d174bd72ff5e59"
15 sha256 cellar: :any_skip_relocation, x86_64_linux: "995b209cd742541ad9f6fd0f0484232bfcd6c1509b1423ca14dc6b00f5a9121f"
18 depends_on "go" => [:build, :test]
22 system "go", "build", *std_go_args(ldflags: "-s -w")
27 output = shell_output("#{bin}/gf --version 2>&1")
28 assert_match "v#{version}\nWelcome to GoFrame!", output
29 assert_match "GF Version(go.mod): cannot find go.mod", output
31 output = shell_output("#{bin}/gf init test 2>&1")
32 assert_match "you can now run \"cd test && gf run main.go\" to start your journey, enjoy!", output