olang 簡介
Go(又稱Golang)是Google開發的一種靜態強類型、編譯型、并發型,并具有垃圾回收功能的編程語言。
golang前景
適合云計算、微服務、基礎后端軟件的功能實現。
go語言優點
go是非常年輕的一門語言,“兼具Python 等動態語言的開發速度和C/C++等編譯型語言的性能與安全性”,具備強大的標準庫,內置垃圾回收機制,屬于靜態類型語言,因此具備編譯檢查和編碼規范,特別是并發功能實現簡單,但功能強大,可使用goroutine和channel輕松實現高并發。
golang web 優勢
語法簡單:語法簡潔,新手入門簡單,開發應用性能高。
便于維護:強類型靜態語言,便于項目的重構和維護。
部署方便:編譯的可執行二進制文件,在執行時,不需要部署環境,把編譯文件上傳,就完成了項目的部署。
1、文件列表結構
2、html/base/admin.html
3、html/admin/admin.html
4、html/base/foot.html
5、設置請求處理對象
6、設置請求處理函數
果您已經添加過備案號到網站首頁,但還是提示您未在首頁添加網站備案號,請檢查源碼中網址是否是https://beian.miit.gov.cn/,如不是,請參考下方代碼更新。
添加對應的備案信息到首頁一般使用以下代碼添加。(“備案號”請替換為您網站的備案號。)
<a href="https://beian.miit.gov.cn/"; target=_blank>備案號</a>
不同程序添加方式不一樣,但思路相同,都是先找后臺再找源文件,后臺注意找版權設置或者icp備案號設置,如果沒有再找源文件.
常見程序:
dedecms:后臺管理-系統-系統基本參數-網站版權信息,將備案號和代碼添加.
源文件方式:路徑wwwroot\templets\模板\footer.htm 以上操作修改后,要重新生成首頁.
discuz:后臺-全局-系統設置-備案號
源文件方式:路徑template\模板\common\footer.htm
phpcms:源文件方式:路徑 /wwwroot/phpcms/templates/模板/content/ footer.html
代理平臺:登錄管理員,升級到最新版本,在系統設置-系統設置-基本信息-網站備案號,設置備案編號即可.
自己修改過代理平臺模板,wwwroot\Template\模板\config\bottom.html 編輯.
wordpress:后臺-設置-常規-ICP備案號.
因很多人不會使用自帶主題,一般主題設置會有備案編號設置,底部版權設置,編輯添加上面代碼即可.
aspcms:
源文件方式: \wwwroot\template\當前使用模板\zh_foot.html foot文件有時候可能有其他命名
其他網站程序:先到網站后臺查看有沒有版權備案號設置,一般都在基本設置。 如果后臺沒有則到對應的網站程序模板,找到頁腳進行添加,一般頁腳為footer開頭命名.
freeCodeCamp網站上刷題看到的用純CSS畫一只企鵝案例。以下是代碼:
<style>
.penguin {
/* change code below */
--penguin-skin: gray;
--penguin-belly: white;
--penguin-beak: orange;
/* change code above */
position: relative;
margin: auto;
display: block;
margin-top: 5%;
width: 300px;
height: 300px;
}
.penguin-top {
top: 10%;
left: 25%;
background: var(--penguin-skin, gray);
width: 50%;
height: 45%;
border-radius: 70% 70% 60% 60%;
}
.penguin-bottom {
top: 40%;
left: 23.5%;
background: var(--penguin-skin, gray);
width: 53%;
height: 45%;
border-radius: 70% 70% 100% 100%;
}
.right-hand {
top: 0%;
left: -5%;
background: var(--penguin-skin, gray);
width: 30%;
height: 60%;
border-radius: 30% 30% 120% 30%;
transform: rotate(45deg);
z-index: -1;
}
.left-hand {
top: 0%;
left: 75%;
background: var(--penguin-skin, gray);
width: 30%;
height: 60%;
border-radius: 30% 30% 30% 120%;
transform: rotate(-45deg);
z-index: -1;
}
.right-cheek {
top: 15%;
left: 35%;
background: var(--penguin-belly, white);
width: 60%;
height: 70%;
border-radius: 70% 70% 60% 60%;
}
.left-cheek {
top: 15%;
left: 5%;
background: var(--penguin-belly, white);
width: 60%;
height: 70%;
border-radius: 70% 70% 60% 60%;
}
.belly {
top: 60%;
left: 2.5%;
background: var(--penguin-belly, white);
width: 95%;
height: 100%;
border-radius: 120% 120% 100% 100%;
}
.right-feet {
top: 85%;
left: 60%;
background: var(--penguin-beak, orange);
width: 15%;
height: 30%;
border-radius: 50% 50% 50% 50%;
transform: rotate(-80deg);
z-index: -2222;
}
.left-feet {
top: 85%;
left: 25%;
background: var(--penguin-beak, orange);
width: 15%;
height: 30%;
border-radius: 50% 50% 50% 50%;
transform: rotate(80deg);
z-index: -2222;
}
.right-eye {
top: 45%;
left: 60%;
background: black;
width: 15%;
height: 17%;
border-radius: 50%;
}
.left-eye {
top: 45%;
left: 25%;
background: black;
width: 15%;
height: 17%;
border-radius: 50%;
}
.sparkle {
top: 25%;
left: 15%;
background: white;
width: 35%;
height: 35%;
border-radius: 50%;
}
.blush-right {
top: 65%;
left: 15%;
background: pink;
width: 15%;
height: 10%;
border-radius: 50%;
}
.blush-left {
top: 65%;
left: 70%;
background: pink;
width: 15%;
height: 10%;
border-radius: 50%;
}
.beak-top {
top: 60%;
left: 40%;
background: var(--penguin-beak, orange);
width: 20%;
height: 10%;
border-radius: 50%;
}
.beak-bottom {
top: 65%;
left: 42%;
background: var(--penguin-beak, orange);
width: 16%;
height: 10%;
border-radius: 50%;
}
body {
background:#c6faf1;
}
.penguin * {
position: absolute;
}
</style>
<div class="penguin">
<div class="penguin-bottom">
<div class="right-hand"></div>
<div class="left-hand"></div>
<div class="right-feet"></div>
<div class="left-feet"></div>
</div>
*請認真填寫需求信息,我們會在24小時內與您取得聯系。