util

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AfterStrings

func AfterStrings(value string, a string) string

AfterStrings gets the substring after a string.

func BetweenStrings

func BetweenStrings(value string, a string, b string) string

BetweenStrings gets the substring between two strings.

func ConcatMultipleSlices added in v0.0.4

func ConcatMultipleSlices[T any](slices [][]T) []T

func URIToPath

func URIToPath(docuri uri.URI) (string, error)

func ValueAt added in v0.0.4

func ValueAt(str string, index int) string

ValueAt returns the value found at the given character position. It removes all content of the word after a "." right of the position.

func WordAt

func WordAt(str string, index int) string

WordAt returns the word found at the given character position. Credit https://github.com/aca/neuron-language-server/blob/450a7cff71c14e291ee85ff8a0614fa9d4dd5145/utils.go#L13

Types

This section is empty.

Jump to

Keyboard shortcuts

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