go + go ipfs libp2p #11 p2p network - Blockchainlibp2p 를 이용하여 p2p방식의 네트워킹을 구현하자. wono | discuss | tweet + go disassembly Lensm, A Tool for Viewing DisassemblyI couldn’t find a great tool for viewing disassembly, so I wrote it myself over the weekend. wono | discuss | tweet + go creative programming Exploring the Go language as a medium for creative programming | by Endre Simo | Jul, 2022 | ITNEXTThis article is about exploring the Go language and its capabilities in fields like generative and creative coding, visual programming, Webassembly, face detection and image processing, areas that… wono | discuss | tweet + go struct go - Check if struct fields are not empty - Stack OverflowHow to iterate over the fields in a structure and check if they are not empty without explicit? I have an example structure type Example struct { Foo, Bar string } I can ofc check explicitly if wono | discuss | tweet + go template ternary operator How can I conditionally set a variable in a Go template based on an expression which may cause an error if not wrapped with an if statement - Stack OverflowQuestion How do I do something like this: {{ $use_ssl := (ne $.Env.CERT_NAME "") }} where $.Env.CERT_NAME may be nil/undefined. If it is nil, it gives this error: at <ne $.Env.CERT_NAME ""&g... wono | discuss | tweet + 프로그래밍언어 go Golang Weekly Archives wono | comment (1) | tweet + go cidr Go/GoLang check IP address in rangeIn Go/GoLang, what is the fastest way to check if an IP address is in a specific range? For example, given range 216.14.49.184 to 216.14.49.191, how would I check if a given input IP address is in... wono | discuss | tweet + go cidr Go - check if IP address is in a networkGiven: a network address A: (172.17.0.0/16) and an IP address from a host B: (172.17.0.2/16) how can we say if B is in A? All addresses are string variables in the following form: [IP address in ... wono | discuss | tweet + go checkredirect HTTP Client to not follow redirect in Go (Golang) - Welcome To Golang By ExampleOverview http.Client struct is used to make HTTP requests in golang. https://golang.org/src/net/http/client.go http.Client lets you specify a policy of how redirects can be handled. Below is the structure of http.Client struct The... wono | comment (1) | tweet + go checkredirect Golang: Workaround for too many redirects - "stopped after 10 redirects" errorGolang: Workaround for too many redirects - "stopped after 10 redirects" error - redirects.go wono | discuss | tweet + go gui fyne Getting Started | Develop using Fyne wono | discuss | tweet + go gui Learning Go by examples: part 7 - Create a cross-platform GUI/Desktop app in Go - DEV CommunitySerie of article in order to learn Golang language by concrete applications as example. Tagged with go, beginners, gui, tutorial. wono | discuss | tweet + go error echo Golang Error Stack Trace와 로깅 | Popit나는 최근 몇 년 간 Golang(이하 Go)을 사용하고 있지만 이전에는 주로 Java로 개발했었다. Java는 오류를 Exception으로 다루며 오류가 발생하면 개발자가 별도 처리하지 않아도 Strack Trace를 출력한다. 아래 그림을 보자. C의 23줄에서 오류가 발생한 상황이다. Stack Trace로 표현하면 아래와 같다. 오류와 어떤 경로로 발생했는지 보여주는 것이다. C의 C-1 함수 23 줄에서 오류 발생 B의 B-1 함수가 C의 C-1 함수 호출 A가 B의 B-1 함수 호출 Go에서는 오류를 Error로 다룬다. 아쉽게도 wono | comment (1) | tweet + go GitHub - gocopper/copper: 🚀 Copper is a Go toolkit complete with everything you need to build web apps.🚀 Copper is a Go toolkit complete with everything you need to build web apps. - GitHub - gocopper/copper: 🚀 Copper is a Go toolkit complete with everything you need to build web apps. wono | discuss | tweet + go reflect reflect를 사용하는 방법 // cublr's warehouse wono | discuss | tweet + go generic go - Can I create an alias for a generic function? I get error "Cannot use generic function without instantiation" - Stack OverflowI can define a generic function: package hello func IsZero[T int64|float64](value T) bool { return value == 0 } Then if I try to alias that function in another package, it fails: package world wono | comment (1) | tweet + go generic 생각하는 Go 언어 프로그래밍 : Go 제네릭의 이해 - 골든래빗제네릭 프로그래밍은 Go 1.18 버전부터 새롭게 추가된 기능으로 타입 파라미터를 통해서 하나의 함수나 타입이 여러 타입에 대해서 동작하도록 해주는 프로그래밍 기법입니다. wono | discuss | tweet + go template GitHub - josharian/tstruct at golangexample.comgenerate template FuncMap helpers to construct struct literals within a Go template - GitHub - josharian/tstruct at golangexample.com wono | comment (1) | tweet + go dereference pointers - What is the dereference operator of a type in Go generics? - Stack OverflowWhen doing generics, one can create a pointer type from any type, see Pointer Method Example section in Types Parameter Proposal. Example: type Pointer[T any] interface { *T // non-interface type wono | discuss | tweet + go postgresql Getting started with pgx through database sql · jackc/pgx Wiki · GitHubPostgreSQL driver and toolkit for Go. Contribute to jackc/pgx development by creating an account on GitHub. wono | discuss | tweetNext
+ go disassembly Lensm, A Tool for Viewing DisassemblyI couldn’t find a great tool for viewing disassembly, so I wrote it myself over the weekend. wono | discuss | tweet
+ go creative programming Exploring the Go language as a medium for creative programming | by Endre Simo | Jul, 2022 | ITNEXTThis article is about exploring the Go language and its capabilities in fields like generative and creative coding, visual programming, Webassembly, face detection and image processing, areas that… wono | discuss | tweet
+ go struct go - Check if struct fields are not empty - Stack OverflowHow to iterate over the fields in a structure and check if they are not empty without explicit? I have an example structure type Example struct { Foo, Bar string } I can ofc check explicitly if wono | discuss | tweet
+ go template ternary operator How can I conditionally set a variable in a Go template based on an expression which may cause an error if not wrapped with an if statement - Stack OverflowQuestion How do I do something like this: {{ $use_ssl := (ne $.Env.CERT_NAME "") }} where $.Env.CERT_NAME may be nil/undefined. If it is nil, it gives this error: at <ne $.Env.CERT_NAME ""&g... wono | discuss | tweet
+ go cidr Go/GoLang check IP address in rangeIn Go/GoLang, what is the fastest way to check if an IP address is in a specific range? For example, given range 216.14.49.184 to 216.14.49.191, how would I check if a given input IP address is in... wono | discuss | tweet
+ go cidr Go - check if IP address is in a networkGiven: a network address A: (172.17.0.0/16) and an IP address from a host B: (172.17.0.2/16) how can we say if B is in A? All addresses are string variables in the following form: [IP address in ... wono | discuss | tweet
+ go checkredirect HTTP Client to not follow redirect in Go (Golang) - Welcome To Golang By ExampleOverview http.Client struct is used to make HTTP requests in golang. https://golang.org/src/net/http/client.go http.Client lets you specify a policy of how redirects can be handled. Below is the structure of http.Client struct The... wono | comment (1) | tweet
+ go checkredirect Golang: Workaround for too many redirects - "stopped after 10 redirects" errorGolang: Workaround for too many redirects - "stopped after 10 redirects" error - redirects.go wono | discuss | tweet
+ go gui Learning Go by examples: part 7 - Create a cross-platform GUI/Desktop app in Go - DEV CommunitySerie of article in order to learn Golang language by concrete applications as example. Tagged with go, beginners, gui, tutorial. wono | discuss | tweet
+ go error echo Golang Error Stack Trace와 로깅 | Popit나는 최근 몇 년 간 Golang(이하 Go)을 사용하고 있지만 이전에는 주로 Java로 개발했었다. Java는 오류를 Exception으로 다루며 오류가 발생하면 개발자가 별도 처리하지 않아도 Strack Trace를 출력한다. 아래 그림을 보자. C의 23줄에서 오류가 발생한 상황이다. Stack Trace로 표현하면 아래와 같다. 오류와 어떤 경로로 발생했는지 보여주는 것이다. C의 C-1 함수 23 줄에서 오류 발생 B의 B-1 함수가 C의 C-1 함수 호출 A가 B의 B-1 함수 호출 Go에서는 오류를 Error로 다룬다. 아쉽게도 wono | comment (1) | tweet
+ go GitHub - gocopper/copper: 🚀 Copper is a Go toolkit complete with everything you need to build web apps.🚀 Copper is a Go toolkit complete with everything you need to build web apps. - GitHub - gocopper/copper: 🚀 Copper is a Go toolkit complete with everything you need to build web apps. wono | discuss | tweet
+ go generic go - Can I create an alias for a generic function? I get error "Cannot use generic function without instantiation" - Stack OverflowI can define a generic function: package hello func IsZero[T int64|float64](value T) bool { return value == 0 } Then if I try to alias that function in another package, it fails: package world wono | comment (1) | tweet
+ go generic 생각하는 Go 언어 프로그래밍 : Go 제네릭의 이해 - 골든래빗제네릭 프로그래밍은 Go 1.18 버전부터 새롭게 추가된 기능으로 타입 파라미터를 통해서 하나의 함수나 타입이 여러 타입에 대해서 동작하도록 해주는 프로그래밍 기법입니다. wono | discuss | tweet
+ go template GitHub - josharian/tstruct at golangexample.comgenerate template FuncMap helpers to construct struct literals within a Go template - GitHub - josharian/tstruct at golangexample.com wono | comment (1) | tweet
+ go dereference pointers - What is the dereference operator of a type in Go generics? - Stack OverflowWhen doing generics, one can create a pointer type from any type, see Pointer Method Example section in Types Parameter Proposal. Example: type Pointer[T any] interface { *T // non-interface type wono | discuss | tweet
+ go postgresql Getting started with pgx through database sql · jackc/pgx Wiki · GitHubPostgreSQL driver and toolkit for Go. Contribute to jackc/pgx development by creating an account on GitHub. wono | discuss | tweet