go
Date parsing in Go
I\'m trying to parse a timestamp as produced by tar such as \'2011-01-19 22:15\' but can\'t work out the funky API of time.Parse.[详细]
2023-03-18 01:26 分类:问答How to perform file system scanning
I need to write a function which when given the path of a folder scans the files rooted at that folder.[详细]
2023-03-17 17:57 分类:问答Wildcards in the pattern for http.HandleFunc
When registering handlers, is there any way to specify wildcards in the pattern? For example: http.HandleFunc("/groups/*/people", peopleInGroupHandler)[详细]
2023-03-17 13:13 分类:问答Performance of Google's Go?
So has anyone used Google\'s Go?I was wondering how the mathematical performance (开发者_高级运维e.g. flops) is compared to other languages with a garbage collector... like Java or .NET?[详细]
2023-03-17 04:04 分类:问答Golang help reflection to get values
I\'m very new in Go. I was wondering how do I get value of mappings out of this using Reflection in Go.[详细]
2023-03-17 03:44 分类:问答reading json data from a file
I am running a server with Go programming language, and when I load the server in the browser, the temp handler function is called and the getjson.html file is served by this temp Handler function. No[详细]
2023-03-15 22:54 分类:问答How do I allocate memory for an array in the go programming language?
I want to make an array of size N in go, but I don\'t know what N will be at compile time, how would I allocate memory for it?[详细]
2023-03-15 19:57 分类:问答One type is coerced into another, can a method to determine the type of the receiver?
If types T1 and T2 are based on type T, and type T only comes into existence from a NewT1() or NewT2(), is there any way a function func (*T) WhoAmI() can know whether it "really" is a T1 or[详细]
2023-03-15 06:45 分类:问答Using a setter for a struct type does not work as anticipated
Using a setter function for a struct, but not working as anticipated: package main import \"fmt\" type T struct { Val string }[详细]
2023-03-15 03:23 分类:问答In go, how do you create an interface when methods are called by *Type?
Attempting to create an interface, but methods have *Type, not Type receivers APOLOGIZE: was sleepy and mis-read error messages.Thought I was being block from creating the DB interface when in realit[详细]
2023-03-15 00:58 分类:问答