Help us shape the future of Go! Take the 2026 Go Developer Survey

util

package
v0.0.0-...-3d357ff Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareVersions

func CompareVersions(v1, v2 string) int

CompareVersions compares two version strings in semantic version format. Returns -1 if v1 < v2, 0 if v1 == v2, 1 if v1 > v2

func CopyFile

func CopyFile(src, dst string) error

CopyFile copies a file from src to dst preserving file permissions

func GetCompiledModules

func GetCompiledModules(phpBinPath, phpLibPath string) (map[string]bool, error)

GetCompiledModules returns a list of built-in PHP modules by running `php -m`

func UniqueStrings

func UniqueStrings(input []string) []string

UniqueStrings returns a slice with duplicate strings removed while preserving order

Types

This section is empty.

Jump to

Keyboard shortcuts

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