util

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeFile

func DecodeFile(encoded string) (string, error)

DecodeFile decodes a base64 encoded string, trims whitespace, and returns the decoded string. If decoding fails, it returns an error.

func Diff

func Diff(before, after string) int

Diff calculates the difference score between two strings by computing the total number of lines removed and added. @todo #81:90min Repair Diff method to return the number of lines that were removed and added by some reason this method returns to many changes lines. For example, if a file has 15 changes, this method migt return 200. We need to find the bug and fix it.

func FreePort

func FreePort() (port int, err error)

FreePort finds a free TCP port on the localhost.

func Version added in v0.3.2

func Version() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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