목록Golang (7)
반업주부의 일상 배움사
터미널에서 실행. $ copper create coppertest $ cd coppertest $ copper run -watch copper create 할 때 -frontend 와 -storage 를 사용할 수 있어요. -frontend Go Templates (default) Tailwind React React + Tailwind REST API (no frontend) -storage sqlite3 (default) postgres mysql none 영어, 중국어 공부중이신가요? 홈스쿨 교재. 한 권으로 가족 모두 할 수 있어요! 한GLO 미네르바에듀 : 네이버쇼핑 스마트스토어 한글로 영어가 된다?! 한글로[한GLO]는 영어 중국어 일어 러시아어 스페인어가 됩니다!! smartstore.nav..
CLI $ go install github.com/gocopper/cli/cmd/copper@latest 잘 설치되었는지 확인해요. $ copper -h 위 코드가 작동하지 않으면 ~/.zshrc 또는 ~/.bashrc에 아래 코드를 넣으세요. export PATH=$HOME/go/bin:$PATH 터미널을 재실행한 후 다시 해보세요. 영어, 중국어 공부중이신가요? 홈스쿨 교재. 한 권으로 가족 모두 할 수 있어요! 한GLO 미네르바에듀 : 네이버쇼핑 스마트스토어 한글로 영어가 된다?! 한글로[한GLO]는 영어 중국어 일어 러시아어 스페인어가 됩니다!! smartstore.naver.com
https://gocopper.dev/ Copper - Toolkit to build web apps in Go. Fast. 🔩 First-party packages Includes packages for authentication, pub/sub, queues, emails, and websockets. gocopper.dev Copper는 웹 앱을 구축하는 데 필요한 모든 것을 갖춘 Go 툴킷입니다. 개발자 생산성에 중점을 두고, 더 적은 상용구로 Go에서 웹 앱을 더 재미있게 구축하고, 일반적인 요구 사항에 대해 즉시 사용 가능한 지원을 제공합니다. 가장 중요한 것은 여러분의 방해가 되지 않고 Go 표준 라이브러리에 최대한 의존하여 코드를 관용적인 Go로 유지한다는 것입니다. 풀스택 툴킷 🚀 Cop..
list.txt 김씨 이씨 박씨 강씨 최씨 송씨 홍씨 main.go package main import ( "bufio" "fmt" "math/rand" "os" "time" ) func main() { file, _ := os.Open("list.txt") defer file.Close() result := make([]string, 0) scanner := bufio.NewScanner(file) for scanner.Scan() { result = append(result, scanner.Text()) } rand.Seed(time.Now().UnixNano()) for i := 0; i < 3; i++ { rnd := rand.Intn(len(result)) fmt.Println(result[rn..
노마드 강의 듣고 기억을 더듬어 코딩했어요. 그래서 코드가 조금 달라요. 일단 고루틴을 안 썼더니 평균 3.5초가 나오네요. package main import ( "fmt" "net/http" "time" ) var urls []string = []string{ "https://yeastudio.kr", "https://google.com", "https://naver.com", "https://yahoo.com", "https://kakao.com", "https://facebook.com", "https://twitter.com", } func main() { tm := time.Now() for _, v := range urls { res, err := checkURL(v) fmt.Println(..
VSCode에서 Run 했는데 아래와 같은 에러가 나나요? go: go.mod file not found in current directory or any parent directory; see 'go help modules' 터미널에서 아래 코드를 실행하세요. go env -w GO111MODULE=auto 2023.02.05 - [IT 인터넷/Golang] - Go 언어를 ChatGPT에게 배우다 :: Golang Go 언어를 ChatGPT에게 배우다 :: Golang [ 설치 ] MacOS에서 Go (Golang)을 설치하는 방법은 다음과 같습니다. Go의 최신 버전을 다운로드합니다: https://golang.org/dl/ 다운로드한 파일을 압축 해제합니다. 압축 해제한 폴더를 /usr/local..
저는 Mac을 써요. 다운로드하고 설치할께요. https://golang.org/dl/ Downloads - The Go Programming Language Downloads After downloading a binary release suitable for your system, please follow the installation instructions. If you are building from source, follow the source installation instructions. See the release history for more information about Go releases golang.org 콘솔에서 go 하니까 나오네요. 바탕화면에 main.go 파일을 만들었어요..