Home
Daily Record
Cancel

4. function(adv)

Go/Golang - Function Function 심화 vartadic function(가변인수 함수) 만들기 // ex) func sum(nums ...int) int { sum := 0 fmt.Printf("nums 타입: %T\n", nums) for _, v := range nums {sum += v} ...

3. interface

Go/Golang - Interface Interface 기본 Interface 선언 형태 // type interface_name interface_keyword type employeeInterface interface { Work() Rest(hour int) int // method 선언 시 주의사항 ...

2. method

Go/Golang - Method Method 기본 Go에서의 함수(Function)와 메소드(Method) 엄밀히 말하면, Go에서 method는 함수의 일종이다. 보통 흔히들 생각하는 프로그래밍 언어에서의 function는 파라미터를 받아 로직을 처리한 뒤 리턴하는 역할을 담당하지만, Go에서 method는 구조체 밖의 method 를 정의...

1. slice

Go/Golang - Slice Slice 기본 Go 에서 제공하는 동적배열 var slice1 = []int{1,2,3} // {} 를 통한 초기화 var slice2 = make([]int, 3) // make() 를 통한 초기화 // make(배열을 가르키는 포인터, 요소 개수, 실제 배열의 길이) var slice2 = make([]in...

12. restful-api

Go/Golang - Restful-API ##

11. web-server

Go/Golang - Web Server HTTP Web Server 기초 1. Add Handler func IndexPathHandler(w http.ResponseWriter, r *http.Request) { ... } http.HandleFunc("/", IndexPathHandler ) 2. Web Server Start func ...

10. test and benchmark

Go/Golang - Test and Benchmark How to test and benchmark with Go 테스트 코드와 벤치마킹 테스트 코드: 작성한 코드를 테스트 벤치마크: 작성한 코드의 성능을 확인 -> Go는 언어 자체적으로 테스트와 벤치마킹을 지원한다. 테스트 코드 작성규약 1) 파일명이 _test.go로 ...

Window WSL2 환경 구축기

WSL2 WSL2 메모리 증설 wslconfig 파일 생성 Write-Output "[wsl2] memory=26GB" >> "${env:USERPROFILE}\.wslconfig" wsl --shutdown wsl 재실행 https://sup...

JMeter Performance Testing

JMeter Table of contents Performance Test의 세가지 메인 팩터 Type of Testing Performance Testing Metrics In My Case Top 5 JMeter Plugins Performance Test의 세가지 메인 팩터 Speed - If the resp...

Logstash는 오픈소스 기반 데이터 수집 엔진이다!

Logstash에서 Ruby필터로 반복형 JSON객체배열 파싱하기

Logstash JSON 객체 파싱 Logstash는 다양한 경로에서 데이터를 수집하고 처리합니다. 수집하는 데이터의 형태는 정말 다양한 형태로 들어오며, 때로는 복잡한 전처리를 요구하기도 합니다. 이번 포스팅에서는 JSON 객체 안에 배열형태로 들어오는 JSON 객체를 파싱하는 방법을 기록으로 남기고자 합니다. JSON 데이터 형태 이번 포스팅...