Fork me on GitHub

随笔分类 -  golang

摘要:在go语言中没有类以及构造函数的说法,只有类似的结构体: package main import "fmt" type Books struct { title string author string subject string book_id int } func main() { // 创建 阅读全文
posted @ 2020-04-27 17:40 Something_Diffrent 阅读(429) 评论(0) 推荐(0)
摘要:Port:8080<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>jsonp</title> <script type="text/javascript"> function sayHello(data){ 阅读全文
posted @ 2020-04-24 10:25 Something_Diffrent 阅读(532) 评论(0) 推荐(0)