Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetInfoDict ¶
Gets the info dict out of a main dict, returns nil if it doesn't exists
func GetMainDict ¶
Reads in the torrentfile f_name and assumes that the torrent just have one main dict item (altough the main dict can contain arbitrary many items). The dict itself is assumed to only have strings or ints as keys (Altough both are represented as strings) the value can be anything and is returned as an interface{}, type assertion is needed to properly access the value.
func GetStringListFromDict ¶
Gets a string list value from a dictionary (or map[string]Interface{}) that has the key value "key". These reflection things are subtle and recommended reading is
http://blog.golang.org/2011/09/laws-of-reflection.html, http://research.swtch.com/interfaces and the The "fmt" source code.
If there is diffrent list-values in a list you'll have to implement your own corresponding function. The string list value is so common that this function is included ;)
Types ¶
This section is empty.