Go
-
Go언어: Generics 이용하기 (v1.17+)컴퓨터/Go language 2021. 3. 24. 22:22
The Go Programming Language Download Go Binary distributions available for Linux, macOS, Windows, and more. // You can edit this code! // Click here and start typing. package main import "fmt" func main() { fmt.Println("Hello, 世界") } Hello, World! Conway's Game of Life Fibonacci golang.org Go 1.17 버전 이상 Generic이 드디어 생겼다. (욕먹던 부분) type X interface로 지정 후 또는 (any로 모든 타입 받을 수 있음) 자바처럼 T로 사용하면 된다. 1...
-
Golang: JSON <, >, & HTML 기호 escape 하기컴퓨터/Go language 2021. 2. 9. 15:42
Go The Go Programming Language Download Go Binary distributions available for Linux, macOS, Windows, and more. // You can edit this code! // Click here and start typing. package main import "fmt" func main() { fmt.Println("Hello, 世界") } Hello, World! Conway's Game of Life Fibonacci golang.org 기본적으로 Marshal은 HTML 기호들을 escape를 안 한다. (&, >,
-
Golang: gin으로 카카오 챗봇 서버 만들기컴퓨터/Go language 2021. 1. 1. 22:57
gin gin-gonic/gin Gin is a HTTP web framework written in Go (Golang). It features a Martini-like API with much better performance -- up to 40 times faster. If you need smashing performance, get yourself some Gin. - ... github.com 카카오 챗봇 Python으로 만들기 링크 카카오 챗봇 Rust언어로 만들기 링크 카카오 챗봇 예제 서버 Python FastAPI 소스 링크 카카오 챗봇 풀 예제 Github 링크 1. gin gin은 Python의 Flask, FastAPI처럼 웹 서버를 만들 수 있는 웹 프레임워크이다. 웹 프레임..