go
Using gomake/gotest for a package with external dependencies
I have the following package Makefile: include ${GOROOT}/src/Make.inc TARG=gorilla.googlecode.com/hg/gorilla/mux[详细]
2023-04-03 04:18 分类:问答Decrypt using the CTR mode
I\'m trying to understand how encryption using the CTR mode works, so I created these functions to test it:[详细]
2023-03-31 22:51 分类:问答How to copy array into part of another in Go?
I 开发者_Python百科am new to Go, and would like to copy an array (slice) into part of another. For example, I have a largeArray [1000]byte or something and a smallArray [10]byte and I want the first 1[详细]
2023-03-31 18:06 分类:问答Go issue with strings
I\'m having some trouble with strings in Golang. It seems that they don\'t get handed over to another function.[详细]
2023-03-31 16:35 分类:问答How does modular code work in Go?
Not having come from a C/compiled languages background, I\'m finding it hard to get to grips with using Go\'s packages mechanism to create modular code.[详细]
2023-03-31 13:09 分类:问答Distinguishing sign of zero : -float64(0) from float64(0) in Go
I want to serialize a floating point in such a way that sign info is not lost.Specifically, I would like to distinguish IEEE-754 negative zero from regular zero.[详细]
2023-03-31 03:42 分类:问答fmt.Sprintf passing an array of arguments
Sorry for the basic question. I\'d like to pass a slice as arguments to fmt.Sprintf. Something like this:[详细]
2023-03-29 23:46 分类:问答Append to a file in Go
So I can read from a l开发者_Go百科ocal file like so: data, error := ioutil.ReadFile(name) And I can write to a local file[详细]
2023-03-29 17:08 分类:问答Slice index greater than length and less than capacity gives error
Following code gives a error at runtime. package main import fmt \"fmt\" func main(){ type b []int var k = mak开发者_开发百科e([]b, 5, 10)[详细]
2023-03-29 01:03 分类:问答Go language warnings and errors
It seems that GO language does not have warnings in it. I\'ve observed few instances. 1. \"declared and not used\"(if开发者_JAVA百科 variable is declared and not used[详细]
2023-03-28 14:51 分类:问答
加载中,请稍侯......