Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/arahansa/golkorea
/ types & classes
Types & classes
43 in github.com/arahansa/golkorea
⨍
Functions
243
◇
Types & classes
43
↓ 1 callers
TypeAlias
ByLength
Go에서 커스텀펑션으로 정렬하기위해 우리는 그에 맞는 타입이 필요하다. 단지 []string 타입의 다른 이름일 뿐인 ByLength라는 타입을 만들었다.
gobyexample/40_Function정렬.go:19
↓ 1 callers
TypeAlias
MyFloat
gotour/53_인터페이스.go:26
↓ 1 callers
TypeAlias
MyFloat
gotour/51_메소드2.go:9
Interface
Abser
gotour/53_인터페이스.go:9
TypeAlias
ByteSize
* 원본주소 : https://code.google.com/p/golang-korea/wiki/EffectiveGo 비록, C나 C++의 초기화 과정과 표면적으로 아주 다르게 보이는 부분은 없지만, Go 언어의 초기화 과정은 보다 강력합니다. 초기화 과정에서 복잡한
effectivego/08_초기화.go:20
TypeAlias
ByteSlice
* 원본 주소 : https://code.google.com/p/golang-korea/wiki/EffectiveGo#메소드(Methods) 메소드(Methods) 포인터 vs 값(Pointers vs. Values) 메소드는 pointer나 interface가
effectivego/09_메소드.go:17
Interface
Fetcher
gotour/71_웹크롤러.go:8
Class
GetJava
packages/net/http/GetJava.java:12
Struct
Hello
gotour/57_웹서버.go:9
Struct
Image
gotour/60_연습_이미지.go:9
Struct
MyError
gotour/55_에러.go:9
Struct
MyStruct
packages/reflect/01_겟셋값해보기.go:9
Interface
ReadWriter
gotour/54_인터페이스의암시적충족.go:17
Interface
Reader
gotour/54_인터페이스의암시적충족.go:9
Struct
Response1
우리는 이 두가지 구조체를 사용하여 커스텀타입의 인코딩과 디코딩을 해볼 것이다.
gobyexample/47_JSON.go:16
Struct
Response2
gobyexample/47_JSON.go:20
Struct
SyncedBuffer
* 원글 링크 : https://code.google.com/p/golang-korea/wiki/EffectiveGo new()를 사용한 메모리 할당(Allocation with new()) Go언어에서는 new()와 make(), 두가지 메모리 할당 원형이 있습니다
effectivego/07_데이터/01_new를사용한데이터할당.go:22
Struct
T
* 원글 링크 : https://code.google.com/p/golang-korea/wiki/EffectiveGo 본글을 조금 내용을 요약해서 적어보겠다. 다음과 같이 주어진 선언이 있다면.. 밑에 것을 자동으로 정렬해서 바꿔줄 것이다.(예) type T s
effectivego/01_형식화하기.go:16
Struct
T
* 만약 10진수 정수와 같은 기본 변환을 원한다면, 포괄적인 형태의 %v를 사용할 수 있습니다. (값을 위해서) 결과는 Print와 Println이 만들어 내는 것과 정확히 같습니다. 더욱이 그런 형식으로 어떤 값이든 출력할 수 있습니다.(심지어 배열, 구조체,ma
effectivego/07_데이터/07_출력.go:53
Struct
Vertex
gotour/53_인터페이스.go:35
Struct
Vertex
gotour/40_맵리터럴2.go:6
Struct
Vertex
gotour/52_포인터리시버를가지는메소드.go:9
Struct
Vertex
gotour/28_구조체리터럴.go:6
Struct
Vertex
gotour/50_메소드.go:9
Struct
Vertex
gotour/37_맵.go:6
Struct
Vertex
gotour/29_new함수.go:6
Struct
Vertex
gotour/27_포인터.go:6
Struct
Vertex
gotour/25_구조체.go:6
Struct
Vertex
gotour/26_구조체필드.go:6
Struct
Vertex
gotour/38_맵리터럴.go:6
Interface
Writer
gotour/54_인터페이스의암시적충족.go:13
Struct
argError
에러의 커스텀타입을 사용하는 것은 가능하며, Error() 메소드를 구현하면 된다. 여기에 명시적으로 아규먼트 에러를 나타내는 커스텀 타입을 사용하는 다양한 예제가 있다.
gobyexample/21_에러.go:39
Struct
circle
gobyexample/20_인터페이스.go:26
TypeAlias
fakeFetcher
fakeFetcher is Fetcher that returns canned results.
gotour/71_웹크롤러.go:40
Struct
fakeResult
gotour/71_웹크롤러.go:42
Interface
geometry
여기 기하학모양을 위한 기본적인 인터페이스가 있다.
gobyexample/20_인터페이스.go:17
Struct
person
이 person 구조체는 name 과 age 필드를 가집니다.
gobyexample/18_구조체.go:18
Struct
point
gobyexample/45_문자열포맷팅.go:15
Struct
readOp
이 예제에서 우리의 상태는 단일 고루틴에 의해 소유될 것이다. 이것은 데이터가 동시성 접근에 의한 방해를 받지 않을 것이란 것을 보장한다. 상태를 읽거나 쓰기 위해, 다른 고루틴들은 소유하고 있는 고루틴에게 메시지를 보낼 것이며, 그에 상응하는 답변을 받을 것이다. 이
gobyexample/38_Stateful고루틴들.Go.go:29
Struct
rect
gobyexample/19_메소드.go:15
Struct
rot13Reader
gotour/61_연습Rot13Reader.go:10
Struct
square
우리의 예제를 위해서 우리는 이 인터페이스를 square와 circle 타입에서 구현할 것이다.
gobyexample/20_인터페이스.go:23
Struct
writeOp
gobyexample/38_Stateful고루틴들.Go.go:33