strutil

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: May 20, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func FirstRuneLower

func FirstRuneLower(value string) string

FirstRuneLower returns the same string but with the first rune in the string transformed to lowercase.

Example
package main

import (
	"fmt"

	"github.com/iver-wharf/wharf-core/v2/pkg/strutil"
)

func main() {
	fmt.Println(strutil.FirstRuneLower("HELLO WORLD"))
}
Output:

hELLO WORLD

func FirstRuneUpper

func FirstRuneUpper(value string) string

FirstRuneUpper returns the same string but with the first rune in the string transformed to uppercase.

Example
package main

import (
	"fmt"

	"github.com/iver-wharf/wharf-core/v2/pkg/strutil"
)

func main() {
	fmt.Println(strutil.FirstRuneUpper("hello world"))
}
Output:

Hello world

Types

This section is empty.

Jump to

Keyboard shortcuts

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