dunutils

package module
v0.0.0-...-d74db52 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

README

gblox

An experimental web server in Go

Documentation

Overview

File: math.go

File: string.go

File: dunutils_test.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(a, b int) int

Add returns the sum of two integers

func Capitalize

func Capitalize(s string) string

Capitalize capitalizes the first letter of each word

func CountWords

func CountWords(s string) int

CountWords returns the number of words in a string

func Divide

func Divide(a, b int) int

Divide returns the quotient of two integers Returns 0 if divisor is 0

func Multiply

func Multiply(a, b int) int

Multiply returns the product of two integers

func Reverse

func Reverse(s string) string

Reverse returns the reversed string

func Subtract

func Subtract(a, b int) int

Subtract returns the difference between two integers

func TestAdd

func TestAdd(t *testing.T)

func TestCountWords

func TestCountWords(t *testing.T)

func TestReverse

func TestReverse(t *testing.T)

func TestSubtract

func TestSubtract(t *testing.T)

Types

This section is empty.

Jump to

Keyboard shortcuts

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