mirror of
https://github.com/Binject/debug
synced 2026-06-08 10:28:33 +00:00
17 lines
243 B
Go
17 lines
243 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"strings"
|
|
)
|
|
|
|
func main() {
|
|
s := "prefix this should be all you see"
|
|
trimmed := strings.TrimPrefix(s, "prefix")
|
|
if trimmed != "this should be all you see" {
|
|
fmt.Println("oh noes")
|
|
}
|
|
|
|
fmt.Println(trimmed)
|
|
}
|