Movatterモバイル変換


[0]ホーム

URL:


stringslite

packagestandard library
go1.25.2Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2025 License:BSD-3-ClauseImports:2Imported by:0

Details

Repository

cs.opensource.google/go/go

Links

Documentation

Overview

Package stringslite implements a subset of strings,only using packages that may be imported by "os".

Tests for these functions are in the strings package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

funcClone

func Clone(sstring)string

funcCut

func Cut(s, sepstring) (before, afterstring, foundbool)

funcCutPrefix

func CutPrefix(s, prefixstring) (afterstring, foundbool)

funcCutSuffix

func CutSuffix(s, suffixstring) (beforestring, foundbool)

funcHasPrefix

func HasPrefix(s, prefixstring)bool

funcHasSuffix

func HasSuffix(s, suffixstring)bool

funcIndex

func Index(s, substrstring)int

funcIndexByte

func IndexByte(sstring, cbyte)int

funcTrimPrefix

func TrimPrefix(s, prefixstring)string

funcTrimSuffix

func TrimSuffix(s, suffixstring)string

Types

This section is empty.

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp