Go 문자열 치환

1 개요[ | ]

Go 문자열 치환
package main

import (
	"fmt"
	"strings"
)

func main() {
	fmt.Println(strings.Replace("hello world", "hello", "yellow", -1)) // yellow world
	fmt.Println(strings.Replace("oink oink oink", "oink", "moo", -1))  // moo moo moo
}

2 같이 보기[ | ]

3 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}