<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
div{
width:100px
height:100px
border:1px solid #000
text-align:left
}
</style>
</head>
<body>
<div id="div">52313</div>
<script>
(function(){
var o_div=document.getElementById("div")
o_div.style.textAlign="right"
})()
</script>
</body>
</html>
newBytes := []byte("swift")//创建一个内容Learning的缓冲器
buf := bytes.NewBuffer([]byte("Learning"))
//打印为Learning
fmt.Println(buf.String())
//将newBytes这个slice写到buf的尾部
buf.Write(newBytes)
fmt.Println(buf.String())