Skip to main content

strings.IndexByte

First index of byte

strings.IndexByte(s: string, c: byte) -> int

Arguments

NameType
sstring
cbyte

Example

{{ strings.IndexByte("hello", 108) }}

Returns 2.