MCPcopy Create free account
hub / github.com/Q1mi/go_tutorial / Split

Function Split

video28/split/split.go:9–19  ·  view source on GitHub ↗

split.go Split 将s按照sep进行分割,返回一个字符串的切片 Split("我爱你", "爱") => ["我", "你"]

(s, sep string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

TestSplitFunction · 0.85
BenchmarkSplitFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestSplitFunction · 0.68
BenchmarkSplitFunction · 0.68