? Golang idomatic nested error handling

I have recently gotten into Go and have seen a lot of discussion about how to do error handling.the pattern that I have seen laid out is the following: err := DoSomething()if err != nil { //handle}/
 ? Golang idomatic nested error handling

I have recently gotten into Go and have seen a lot of discussion about how to do error handling.the pattern that I have seen laid out is the following: err := DoSomething()if err != nil { //handle}/
 ? Golang idomatic nested error handling

I have recently gotten into Go and have seen a lot of discussion about how to do error handling.the pattern that I have seen laid out is the following: err := DoSomething()if err != nil { //handle}/
 ? Go Error Handling Techniques

I'm just getting started with Go. My code is starting to have a lot of this: if err != nil { //handle err }or this if err := rows.Scan(&some_column); err != nil { //handle err }Are
 ? Is there idiomatic scoped semantics in golang?

I wonder if there is any idiomatic way to represent scoped semantics. By scoped I mean things like:scoped mutex (oneliner instead of explicit Lock + deffered Unlock),logging function (or any code bloc
 ? Is there an idiomatic way to do "in" for golang slices

This question already has an answer here: Is there a way to write generic code to find out whether a slice contains specific element in Go? 4
 ? What is the idomatic way to handle api versions in golang?

I'm creating a server in Golang intended for a mobile app. I need to be able to support multiple versions of the API for cases were users don't update the app. The main concern with the versioning, i
 ? Managing errors in golang

I'm coming from Ruby and looking at Go at the moment. I start writing a little bit of code to check TLS support for a given host. var tls_versions = map[uint16]string{ tls.VersionSSL30: "SSLv3", tl
 ? Go error handling, what's the idomatic way for making things DRY

Consider the following example program which is primitive stack implementation in Go:package mainimport "fmt"import "errors"const MAX_SIZE = 10var a [10]intvar top int = -1func main() { printStack(
 ? Golang and JWT - Simple Logout

I'm currently working on an API and after a bit of time, I now understand how to use JWT in Go to get a token. With this token, I can keep a user connected but, how can I logout from the client applic
 ? How to use predifined protobuf type (i.e. "google/protobuf/timestamp.proto") with grpc in golang

I'm trying to use google/protobuf/timestamp.proto in with grpc plugin and golangprotoc -I ./ ./*.proto --go_out=plugins=grpc:.#domain.protosyntax = "proto3";option java_multiple_files = true;optio
 ? What's the best way to determine when an RPC session ends using a StreamClientInterceptor?

When writing a StreamClientInterceptor function, what's the best way to determine when an invoker finishes the RPC? This is straightforward enough with unary interceptors or on the server-side where y
 ? How can unknown field functionality be replicated in proto3?

Google has removed unknown fields in proto3. I would love to hear the reasoning behind this choice. Also, if anyone has any way to replicate the proto2 behavior I would love to hear it.If it matters,
 ? How to fix this issue with grpc method handler

I'm new to golang and wanted to experiment with grpc code to get a better understanding of it. In order to do so I followed the example shown here:https://devicharan.wordpress.com/The source code is h
 ? Older services transmitting newer versions of protocol buffer 3 messages

Say, I have a protocol buffer message (in proto3) of the formmessage A { int32 foo = 1;}I'm running servers X, Y, and Z written in Go that use these messages and pass them around with gRPC such that
 ? How do I make a Go gRPC work with standard IO on the server side?

I am a freshman of gRPC, and here is my problem. I'm trying to write a service to expose myOwnService into a gRPC service per the following service method:rpc HighFive (stream HighRequest) returns (st

Page 1 of 247  |  Show More Pages:  Top Prev Next Last