MCPcopy Create free account

hub / github.com/arahansa/golkorea / types & classes

Types & classes43 in github.com/arahansa/golkorea

↓ 1 callersTypeAliasByLength
Go에서 커스텀펑션으로 정렬하기위해 우리는 그에 맞는 타입이 필요하다. 단지 []string 타입의 다른 이름일 뿐인 ByLength라는 타입을 만들었다.
gobyexample/40_Function정렬.go:19
↓ 1 callersTypeAliasMyFloat
gotour/53_인터페이스.go:26
↓ 1 callersTypeAliasMyFloat
gotour/51_메소드2.go:9
InterfaceAbser
gotour/53_인터페이스.go:9
TypeAliasByteSize
* 원본주소 : https://code.google.com/p/golang-korea/wiki/EffectiveGo 비록, C나 C++의 초기화 과정과 표면적으로 아주 다르게 보이는 부분은 없지만, Go 언어의 초기화 과정은 보다 강력합니다. 초기화 과정에서 복잡한
effectivego/08_초기화.go:20
TypeAliasByteSlice
* 원본 주소 : https://code.google.com/p/golang-korea/wiki/EffectiveGo#메소드(Methods) 메소드(Methods) 포인터 vs 값(Pointers vs. Values) 메소드는 pointer나 interface가
effectivego/09_메소드.go:17
InterfaceFetcher
gotour/71_웹크롤러.go:8
ClassGetJava
packages/net/http/GetJava.java:12
StructHello
gotour/57_웹서버.go:9
StructImage
gotour/60_연습_이미지.go:9
StructMyError
gotour/55_에러.go:9
StructMyStruct
packages/reflect/01_겟셋값해보기.go:9
InterfaceReadWriter
gotour/54_인터페이스의암시적충족.go:17
InterfaceReader
gotour/54_인터페이스의암시적충족.go:9
StructResponse1
우리는 이 두가지 구조체를 사용하여 커스텀타입의 인코딩과 디코딩을 해볼 것이다.
gobyexample/47_JSON.go:16
StructResponse2
gobyexample/47_JSON.go:20
StructSyncedBuffer
* 원글 링크 : https://code.google.com/p/golang-korea/wiki/EffectiveGo new()를 사용한 메모리 할당(Allocation with new()) Go언어에서는 new()와 make(), 두가지 메모리 할당 원형이 있습니다
effectivego/07_데이터/01_new를사용한데이터할당.go:22
StructT
* 원글 링크 : https://code.google.com/p/golang-korea/wiki/EffectiveGo 본글을 조금 내용을 요약해서 적어보겠다. 다음과 같이 주어진 선언이 있다면.. 밑에 것을 자동으로 정렬해서 바꿔줄 것이다.(예) type T s
effectivego/01_형식화하기.go:16
StructT
* 만약 10진수 정수와 같은 기본 변환을 원한다면, 포괄적인 형태의 %v를 사용할 수 있습니다. (값을 위해서) 결과는 Print와 Println이 만들어 내는 것과 정확히 같습니다. 더욱이 그런 형식으로 어떤 값이든 출력할 수 있습니다.(심지어 배열, 구조체,ma
effectivego/07_데이터/07_출력.go:53
StructVertex
gotour/53_인터페이스.go:35
StructVertex
gotour/40_맵리터럴2.go:6
StructVertex
gotour/52_포인터리시버를가지는메소드.go:9
StructVertex
gotour/28_구조체리터럴.go:6
StructVertex
gotour/50_메소드.go:9
StructVertex
gotour/37_맵.go:6
StructVertex
gotour/29_new함수.go:6
StructVertex
gotour/27_포인터.go:6
StructVertex
gotour/25_구조체.go:6
StructVertex
gotour/26_구조체필드.go:6
StructVertex
gotour/38_맵리터럴.go:6
InterfaceWriter
gotour/54_인터페이스의암시적충족.go:13
StructargError
에러의 커스텀타입을 사용하는 것은 가능하며, Error() 메소드를 구현하면 된다. 여기에 명시적으로 아규먼트 에러를 나타내는 커스텀 타입을 사용하는 다양한 예제가 있다.
gobyexample/21_에러.go:39
Structcircle
gobyexample/20_인터페이스.go:26
TypeAliasfakeFetcher
fakeFetcher is Fetcher that returns canned results.
gotour/71_웹크롤러.go:40
StructfakeResult
gotour/71_웹크롤러.go:42
Interfacegeometry
여기 기하학모양을 위한 기본적인 인터페이스가 있다.
gobyexample/20_인터페이스.go:17
Structperson
이 person 구조체는 name 과 age 필드를 가집니다.
gobyexample/18_구조체.go:18
Structpoint
gobyexample/45_문자열포맷팅.go:15
StructreadOp
이 예제에서 우리의 상태는 단일 고루틴에 의해 소유될 것이다. 이것은 데이터가 동시성 접근에 의한 방해를 받지 않을 것이란 것을 보장한다. 상태를 읽거나 쓰기 위해, 다른 고루틴들은 소유하고 있는 고루틴에게 메시지를 보낼 것이며, 그에 상응하는 답변을 받을 것이다. 이
gobyexample/38_Stateful고루틴들.Go.go:29
Structrect
gobyexample/19_메소드.go:15
Structrot13Reader
gotour/61_연습Rot13Reader.go:10
Structsquare
우리의 예제를 위해서 우리는 이 인터페이스를 square와 circle 타입에서 구현할 것이다.
gobyexample/20_인터페이스.go:23
StructwriteOp
gobyexample/38_Stateful고루틴들.Go.go:33