This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"io/ioutil" | |
"net/http" | |
) | |
type BodyPrinter struct { | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
) | |
const strListOfNode = `[{"Type":1, "Cpu":1, "Mem":1},{"Type":2, "Cpu":2, "Mem":2}]` | |
type Node struct { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
// 80195: doc/faq: explain why goroutines are anonymous | https://go-review.googlesource.com/c/go/+/80195 | |
// faq: document why there is no way to get a goroutine ID | https://github.com/golang/go/issues/22770 | |
import ( | |
"fmt" | |
"runtime" | |
"strconv" | |
"strings" |