728x90 반응형 Go Lang35 GoLangWeb-Test환경 동일 자료 있는 사이트 https://github.com/3DPIT/golang/blob/master/05.GolangWeb/0728/01.Test%ED%99%98%EA%B2%BD/2021%EB%85%8407%EC%9B%9428%EC%9D%BC_GoLangWeb-Test%ED%99%98%EA%B2%BD.md GitHub - 3DPIT/golang Contribute to 3DPIT/golang development by creating an account on GitHub. github.com 2021. 7. 28. GoLangWeb-JsonTransfer 동일 자료 있는 사이트 https://github.com/3DPIT/golang/blob/master/05.GolangWeb/0727/2021%EB%85%8407%EC%9B%9427%EC%9D%BC-GoLangWeb_JsonTransfer.md GitHub - 3DPIT/golang Contribute to 3DPIT/golang development by creating an account on GitHub. github.com 2021. 7. 28. GoLangWeb-Web Handler 동일 자료 있는 사이트 https://github.com/3DPIT/golang/blob/master/05.GolangWeb/0725/2021%EB%85%8407%EC%9B%9425%EC%9D%BC-GoLang_WebHandler.md GitHub - 3DPIT/golang Contribute to 3DPIT/golang development by creating an account on GitHub. github.com 2021. 7. 28. Go Lang - 확장자 찾는 소스 0.findExt path/filepath 패키지 이용해서 확장자 찾는 소스와 테스트코드 소스 코드 package main import ( "path/filepath" ) func findExtension(path string) string { ext := filepath.Ext(path) return ext } 테스트 코드 package main import ( "testing" "github.com/stretchr/testify/assert" ) func TestFindExtension(t *testing.T) { assert := assert.New(t) testPath := []string{"/go/src/txt.txt", "go/src/test.txt", "go/test1.t", "go/t.SM.. 2021. 7. 22. 이전 1 ··· 4 5 6 7 8 9 다음 728x90 반응형