有这么一段Json
{
"name": "java3d:vecmath:1.3.1"
},
{
"name": "net.sf.trove4j:trove4j:3.0.3"
},
{
"name": "com.ibm.icu:icu4j-core-mojang:51.2"
},
{
"name": "net.sf.jopt-simple:jopt-simple:4.5"
},
{
"name": "com.paulscode:codecjorbis:20101023"
},
{
"name": "com.paulscode:codecwav:20101023"
},
{
"name": "com.paulscode:libraryjavasound:20101123"
},
{
"name": "com.paulscode:librarylwjglopenal:20100824"
},
{
"name": "com.paulscode:soundsystem:20120107"
},
{
"name": "io.netty:netty-all:4.0.10.Final"
},
{
"name": "com.google.guava:guava:15.0"
},
{
"name": "org.apache.commons:commons-lang3:3.1"
},
{
"name": "commons-io:commons-io:2.4"
},
{
"name": "net.java.jinput:jinput:2.0.5"
},
{
"name": "net.java.jutils:jutils:1.0.0"
},
{
"name": "com.google.code.gson:gson:2.2.4"
},
{
"name": "com.mojang:authlib:1.3.1"
},
{
"name": "org.apache.logging.log4j:log4j-api:2.0-beta9"
},
{
"name": "org.apache.logging.log4j:log4j-core:2.0-beta9"
},
{
"name": "org.lwjgl.lwjgl:lwjgl:2.9.1"
},
{
"name": "org.lwjgl.lwjgl:lwjgl_util:2.9.1"
},
{
"name": "org.lwjgl.lwjgl:lwjgl-platform:2.9.1",
"natives": {
"linux": "natives-linux",
"windows": "natives-windows",
"osx": "natives-osx"
},
"extract": {
"exclude": [
"META-INF/"
]
}
},
{
"name": "net.java.jinput:jinput-platform:2.0.5",
"natives": {
"linux": "natives-linux",
"windows": "natives-windows",
"osx": "natives-osx"
},
"extract": {
"exclude": [
"META-INF/"
]
}
},
{
"name": "tv.twitch:twitch:5.16"
},
{
"name": "tv.twitch:twitch-platform:5.16",
"rules": [
{
"action": "allow"
},
{
"action": "disallow",
"os": {
"name": "linux"
}
}
],
"natives": {
"linux": "natives-linux",
"windows": "natives-windows-${arch}",
"osx": "natives-osx"
},
"extract": {
"exclude": [
"META-INF/"
]
}
},
{
"name": "tv.twitch:twitch-external-platform:4.5",
"rules": [
{
"action": "allow",
"os": {
"name": "windows"
}
}
],
"natives": {
"windows": "natives-windows-${arch}"
},
"extract": {
"exclude": [
"META-INF/"
]
}
}
解析后:
map[name:java3d:vecmath:1.3.1]
map[name:net.sf.trove4j:trove4j:3.0.3]
map[name:com.ibm.icu:icu4j-core-mojang:51.2]
map[name:net.sf.jopt-simple:jopt-simple:4.5]
map[name:com.paulscode:codecjorbis:20101023]
map[name:com.paulscode:codecwav:20101023]
map[name:com.paulscode:libraryjavasound:20101123]
map[name:com.paulscode:librarylwjglopenal:20100824]
map[name:com.paulscode:soundsystem:20120107]
map[name:io.netty:netty-all:4.0.10.Final]
map[name:com.google.guava:guava:15.0]
map[name:org.apache.commons:commons-lang3:3.1]
map[name:commons-io:commons-io:2.4]
map[name:net.java.jinput:jinput:2.0.5]
map[name:net.java.jutils:jutils:1.0.0]
map[name:com.google.code.gson:gson:2.2.4]
map[name:com.mojang:authlib:1.3.1]
map[name:org.apache.logging.log4j:log4j-api:2.0-beta9]
map[name:org.apache.logging.log4j:log4j-core:2.0-beta9]
map[name:org.lwjgl.lwjgl:lwjgl:2.9.1]
map[name:org.lwjgl.lwjgl:lwjgl_util:2.9.1]
map[name:org.lwjgl.lwjgl:lwjgl-platform:2.9.1 natives:map[linux:natives-linux windows:natives-windows osx:natives-osx] extract:map[exclude:[META-INF/]]]
map[name:net.java.jinput:jinput-platform:2.0.5 natives:map[linux:natives-linux windows:natives-windows osx:natives-osx] extract:map[exclude:[META-INF/]]]
map[name:tv.twitch:twitch:5.16]
map[name:tv.twitch:twitch-platform:5.16 rules:[map[action:allow] map[action:disallow os:map[name:linux]]] natives:map[linux:natives-linux windows:natives-windows-${arch} osx:natives-osx] extract:map[exclude:[META-INF/]]]
map[name:tv.twitch:twitch-external-platform:4.5 rules:[map[action:allow os:map[name:windows]]] natives:map[windows:natives-windows-${arch}] extract:map[exclude:[META-INF/]]]
其中map[name:net.sf.trove4j:trove4j:3.0.3]对应的文件目录是:
net/sf/trove4j/trove4j/3.0.3/trove4j-3.0.3.jar
在Go语言中应该如何转换?