trimsuffix 함수
trimsuffix 함수
trimsuffix는 주어진 문자열의 끝에서 지정된 접미사를 제거해요.
출처: Packer 공식 문서
본문
trimsuffix removes the specified suffix from the end of the given string.
예시 (Examples)
> trimsuffix("helloworld", "world")
hello
관련 함수 (Related Functions)
trim은 문자열의 시작과 끝에서 문자를 제거해요.trimprefix는 문자열의 시작에서 단어를 제거해요.trimspace는 문자열의 시작과 끝 양쪽에서 모든 종류의 공백을 제거해요.