tools

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 26, 2025 License: MIT Imports: 20 Imported by: 0

Documentation

Overview

Copyright 2025 The Hulo Authors. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file.

Copyright 2025 The Hulo Authors. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file.

Copyright 2025 The Hulo Authors. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file.

Copyright 2025 The Hulo Authors. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file.

Copyright 2025 The Hulo Authors. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file.

Copyright 2025 The Hulo Authors. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file.

Copyright 2025 The Hulo Authors. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file.

Copyright 2025 The Hulo Authors. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file.

Copyright 2025 The Hulo Authors. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file.

Copyright 2025 The Hulo Authors. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file.

Copyright 2025 The Hulo Authors. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file.

Index

Constants

View Source
const (
	// ANTLR 4.13.2 version
	ANTLR_JAR_URL = "https://www.antlr.org/download/antlr-4.13.2-complete.jar"
)

Variables

View Source
var (
	ErrGoNotFound           = errors.New("please install Go")
	ErrGoVersion            = errors.New("unable to determine Go version")
	ErrGoVersionUnsupported = errors.New("Go version is not supported")
	ErrGitNotFound          = errors.New("please install Git")
	ErrGitVersion           = errors.New("unable to determine Git version")
)
View Source
var (
	ErrJavaNotFound           = errors.New("please install Java")
	ErrJavaVersion            = errors.New("unable to determine Java version")
	ErrJavaVersionUnsupported = errors.New("Java version is not supported")
)

Functions

func Build

func Build()

Build compiles and packages the project using GoReleaser.

func Clean

func Clean()

Clean removes generated files and build artifacts.

func CopyFileIfNotExists

func CopyFileIfNotExists(src, dst string) error

CopyFileIfNotExists copies a file from src to dst if dst doesn't exist. Returns error if copy fails or if src doesn't exist.

func Doctor

func Doctor()

Doctor checks the development environment and reports any issues.

func Format

func Format()

Format automatically formats the source code using goimports.

func Generate

func Generate()

generates code (Go bindings, DSL grammar, etc).

func Lint

func Lint()

Lint runs golangci-lint on the codebase.

func Pack

func Pack()

builds distributable archives into current directory.

func Setup

func Setup()

Setup prepares the development environment and downloads dependencies.

func Test

func Test()

Test runs all unit tests with coverage.

func ZipDirWithGitIgnore

func ZipDirWithGitIgnore(sourceDir, outputZip string) (int, error)

ZipDirWithGitIgnore creates a zip file from the source directory, excluding files matching .gitignore patterns.

Types

type Checksum

type Checksum struct {
	SHA256  string `json:"sha256"`
	Archive string `json:"archive"`
}

type Release

type Release mg.Namespace

func (Release) All

func (r Release) All()

builds and publishes releases to all targets (npm, pypi, homebrew, etc).

func (Release) Gofish

func (r Release) Gofish()

generates and publishes GoFish manifest files.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL