Generic은 언제 사용해야할까
[원문](When To Use Generics - The Go Programming Language)의 요약글
when to use generics
ADT 구현시 사용할 수 있다. string, int, struct 벨류를 갖는 이진트리, 연결리스트, 힙 등
다양한 타입을 가질 수 있는 slice, map, channel을 다뤄야할 때
아래의 Interface는 go의 sort 패키지의 sort.go에 있는 IntSlice, Float64Sl...
tricolor-ilsan-kim.com1 min read