| :------| ------: | :------: | | 短文本 | 中等文本 | 稍微长一点的文本 | | 稍微长一点的文本 | 短文本 | 中等文本 |
This file contains hidden or 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" | |
"log" | |
"strings" | |
"sync" | |
"time" | |
) |
| :------| ------: | :------: | | 短文本 | 中等文本 | 稍微长一点的文本 | | 稍微长一点的文本 | 短文本 | 中等文本 |
This file contains hidden or 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
import ( | |
"json" | |
"fmt" | |
) | |
func main() { | |
s, _ := json.MarshalIndent(config, "", "\t") | |
fmt.Println(s) | |
} |
###软件测试的概念###
https://www.cnblogs.com/findyou/p/6480411.html
注:不需要太关注黑盒白盒测试
注意按阶段划分:
- 单元测试:开发阶段由develper写
- 集成测试:QA测试
This file contains hidden or 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
func gzipFile(in string) (string, error) { | |
in, err := os.Open(in) | |
defer in.Close() | |
if err != nil { | |
return "", err | |
} | |
out, err := os.Create(fmt.Sprintf("%s.gz", in)) | |
defer out.Close() | |
if err != nil { | |
return "", err |
This file contains hidden or 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" | |
"time" | |
"k8s.io/apimachinery/pkg/api/errors" | |
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | |
"k8s.io/client-go/kubernetes" | |
"k8s.io/client-go/rest" |
This file contains hidden or 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
# Pod Hand-on | |
## Two-Container Pod | |
创建一个运行两个container的pod | |
``` | |
kubectl create -f https://raw.githubusercontent.com/jianchen2580/k8s-example/master/pod/two-container-pod.yaml | |
``` | |
查看Pod信息: |
NewerOlder