File: str.go

package info (click to toggle)
golang-github-evilsocket-islazy 1.11.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 292 kB
  • sloc: javascript: 8; makefile: 3
file content (18 lines) | stat: -rw-r--r-- 285 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package main

import (
	"fmt"

	"github.com/evilsocket/islazy/str"
)

func main() {
	s := "\t hello world "
	csv := "1,2,, ,3,4,"

	fmt.Println(str.Trim(s))
	fmt.Println(str.TrimRight(s))
	fmt.Println(str.TrimLeft(s))
	fmt.Println(str.SplitBy(csv, ","))
	fmt.Println(str.Comma(csv))
}