utils

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func Trim

func Trim(lexeme *string) *string

Trim removes trailing spaces and symbols from the string.

Example
package main

import (
	"fmt"

	"github.com/opencars/wanted/pkg/utils"
)

func main() {
	input := "... this string will be fixed%. "
	fmt.Println(*utils.Trim(&input))
}
Output:

this string will be fixed

Types

This section is empty.

Jump to

Keyboard shortcuts

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