！</strong></p>
<p>我们再看来看一个例子：</p>
<pre class="EnlighterJSRAW" data-enlighter-language="golang">func main() {
    path := []byte(&#34;AAAA/BBBBBBBBB&#34;)
    sepIndex := bytes.IndexByte(path,&#39;/’)

    dir1 := path[:sepIndex]
    dir2 := path[sepIndex+1:]

    fmt.Println(&#34;dir1 =&gt;&#34;,string(dir1)) //prints: dir1 =&gt; AAAA
    fmt.Println(&#34;dir2 =&gt;&#34;,string(dir2)) //prints: dir2 =&gt; BBBBBBBBB

    dir1 = append(dir1,&#34;suffix&#34;...)

    fmt.P