积分充值
 首页
前端开发
AngularDartElectronFlutterHTML/CSSJavaScriptReactSvelteTypeScriptVue.js构建工具
后端开发
.NetC#C++C语言DenoffmpegGoIdrisJavaJuliaKotlinLeanMakefilenimNode.jsPascalPHPPythonRISC-VRubyRustSwiftUML其它语言区块链开发测试微服务敏捷开发架构设计汇编语言
数据库
Apache DorisApache HBaseCassandraClickHouseFirebirdGreenplumMongoDBMySQLPieCloudDBPostgreSQLRedisSQLSQLiteTiDBVitess数据库中间件数据库工具数据库设计
系统运维
AndroidDevOpshttpdJenkinsLinuxPrometheusTraefikZabbix存储网络与安全
云计算&大数据
Apache APISIXApache FlinkApache KarafApache KyuubiApache OzonedaprDockerHadoopHarborIstioKubernetesOpenShiftPandasrancherRocketMQServerlessService MeshVirtualBoxVMWare云原生CNCF机器学习边缘计算
综合其他
BlenderGIMPKiCadKritaWeblate产品与服务人工智能亿图数据可视化版本控制笔试面试
文库资料
前端
AngularAnt DesignBabelBootstrapChart.jsCSS3EchartsElectronHighchartsHTML/CSSHTML5JavaScriptJerryScriptJestReactSassTypeScriptVue前端工具小程序
后端
.NETApacheC/C++C#CMakeCrystalDartDenoDjangoDubboErlangFastifyFlaskGinGoGoFrameGuzzleIrisJavaJuliaLispLLVMLuaMatplotlibMicronautnimNode.jsPerlPHPPythonQtRPCRubyRustR语言ScalaShellVlangwasmYewZephirZig算法
移动端
AndroidAPP工具FlutterFramework7HarmonyHippyIoniciOSkotlinNativeObject-CPWAReactSwiftuni-appWeex
数据库
ApacheArangoDBCassandraClickHouseCouchDBCrateDBDB2DocumentDBDorisDragonflyDBEdgeDBetcdFirebirdGaussDBGraphGreenPlumHStreamDBHugeGraphimmudbIndexedDBInfluxDBIoTDBKey-ValueKitDBLevelDBM3DBMatrixOneMilvusMongoDBMySQLNavicatNebulaNewSQLNoSQLOceanBaseOpenTSDBOracleOrientDBPostgreSQLPrestoDBQuestDBRedisRocksDBSequoiaDBServerSkytableSQLSQLiteTiDBTiKVTimescaleDBYugabyteDB关系型数据库数据库数据库ORM数据库中间件数据库工具时序数据库
云计算&大数据
ActiveMQAerakiAgentAlluxioAntreaApacheApache APISIXAPISIXBFEBitBookKeeperChaosChoerodonCiliumCloudStackConsulDaprDataEaseDC/OSDockerDrillDruidElasticJobElasticSearchEnvoyErdaFlinkFluentGrafanaHadoopHarborHelmHudiInLongKafkaKnativeKongKubeCubeKubeEdgeKubeflowKubeOperatorKubernetesKubeSphereKubeVelaKumaKylinLibcloudLinkerdLonghornMeiliSearchMeshNacosNATSOKDOpenOpenEBSOpenKruiseOpenPitrixOpenSearchOpenStackOpenTracingOzonePaddlePaddlePolicyPulsarPyTorchRainbondRancherRediSearchScikit-learnServerlessShardingSphereShenYuSparkStormSupersetXuperChainZadig云原生CNCF人工智能区块链数据挖掘机器学习深度学习算法工程边缘计算
UI&美工&设计
BlenderKritaSketchUI设计
网络&系统&运维
AnsibleApacheAWKCeleryCephCI/CDCurveDevOpsGoCDHAProxyIstioJenkinsJumpServerLinuxMacNginxOpenRestyPrometheusServertraefikTrafficUnixWindowsZabbixZipkin安全防护系统内核网络运维监控
综合其它
文章资讯
 上传文档  发布文章  登录账户
IT文库
  • 综合
  • 文档
  • 文章

无数据

分类

全部后端开发(12)Go(12)

语言

全部英语(8)中文(简体)(4)

格式

全部PDF文档 PDF(10)其他文档 其他(2)
 
本次搜索耗时 0.206 秒,为您找到相关结果约 12 个.
  • 全部
  • 后端开发
  • Go
  • 全部
  • 英语
  • 中文(简体)
  • 全部
  • PDF文档 PDF
  • 其他文档 其他
  • 默认排序
  • 最新排序
  • 页数排序
  • 大小排序
  • 全部时间
  • 最近一天
  • 最近一周
  • 最近一个月
  • 最近三个月
  • 最近半年
  • 最近一年
  • pdf文档 Golang Manual By AstaXie-20120522

    Index func GenerateKey(curve Curve, rand io.Reader) (priv []byte, x, y *big.Int, err error) func Marshal(curve Curve, x, y *big.Int) []byte func Unmarshal(curve Curve, data []byte) (x, y *big.Int) type generated using the given reader, which must return random data. func Marshal func Marshal(curve Curve, x, y *big.Int) []byte Marshal converts a point into the form specified in section 4.3.6 of ANSI X9 func Unmarshal(curve Curve, data []byte) (x, y *big.Int) Unmarshal converts a point, serialized by Marshal, into an x, y pair. On error, x = nil. type Curve type Curve interface { // Params returns
    0 码力 | 6205 页 | 12.83 MB | 1 年前
    3
  • pdf文档 Build web application with Golang

    two functions which are Marshal and MarshalIndent , where the second function automatically indents the marshalled XML document. Their definition as follows: func Marshal(v interface{}) ([]byte, error) MarshalIndent and xml.Marshal do not output XML headers on their own, so we have to explicitly print them in order to produce XML documents correctly. Here we can see that Marshal also receives a v parameter interface as well. If v is one of the other types, it prints the value of that type. So how does xml.Marshal decide the elements' name? It follows the ensuing rules: If v is a struct, it defines the name
    0 码力 | 327 页 | 1.63 MB | 1 年前
    3
  • pdf文档 Go Web编程

    输出XML 假若我们不是要解析如上所示的XML文件,而是生成它,那么在go语言中又该如何实现呢? xml包中提供了Marshal 和MarshalIndent两个函数,来满足我们的需求。这两个函数主要的区别是第二个函数会增加前缀和缩进,函数的 定义如下所示: func Marshal(v interface{}) ([]byte, error) func MarshalIndent(v interface{} MarshalIndent或者xml.Marshal输出的信息都是不带XML头的,为了生成正确的xml文件,我们 使用了xml包预定义的Header变量。 我们看到Marshal函数接收的参数v是interface{}类型的,即它可以接受任意类型的参数,那么xml包,根据什么规 则来生成相应的XML文件呢? 如果v是 array或者slice,那么输出每一个元素,类似value 如果v是指针,那么会Marshal指针指向的内容,如果指针为空,什么都不输出 com/bitly/go-simplejson 158 生成JSON 生成JSON 我们开发很多应用的时候,最后都是要输出JSON数据串,那么如何来处理呢?JSON包里面通过Marshal函数来处理, 函数定义如下: func Marshal(v interface{}) ([]byte, error) 假设我们还是需要生成上面的服务器列表信息,那么如何来处理呢?请看下面的例子: package
    0 码力 | 295 页 | 5.91 MB | 1 年前
    3
  • pdf文档 The Way To Go - 2012

    vc) // {Jan Kersschot [0x126d2b80 0x126d2be0] none}: // JSON format: js, _ := json.Marshal(vc) fmt.Printf(“JSON format: %s”, js) // using an encoder: file, _ := os.OpenFile(“vcard if err != nil { log.Println(“Error in encoding json”) } } The json.Marshal() function with signature func Marshal(v interface{}) ([]byte, error) encodes the data into the following json-text function types cannot be encoded. • Cyclic data structures are not supported; they will cause Marshal to go into an infinite loop. • Pointers will be encoded as the values they point to (or ‘null’
    0 码力 | 629 页 | 4.85 MB | 1 年前
    3
  • pdf文档 2.1.1 Golang主动式内存缓存的优化探索之路

    自研MemoryTile(定制化的golang序列化反序列化),解决百万数据量级序列化反序列化耗时问题 MemoryTile的通用性 复杂的数据结构,如何处理? 复杂结构的处理 MemoryTile Marshal MemoryTile g o la n g 语 言 专 用 、 高 效 适 合 专 用 的 特 殊 场 景 MsgPack 通 用 、 跨 语 言 、 跨 架 构 适 合 协 议 、
    0 码力 | 48 页 | 6.06 MB | 1 年前
    3
  • pdf文档 Go Programming

    Friday, May 21, 2010 Problem: Generalizing RPC 25 The RPC package in Go uses package gob to marshal objects on the wire. We needed a variant that used JSON. Abstract the codec into an interface:
    0 码力 | 60 页 | 1.04 MB | 1 年前
    3
  • pdf文档 2.1.5 Processing XML and Spreadsheet Data in Go

    unmarshalInterface unmarshalTextInterface Decoder.RawToken Decoder.pushElement Decoder.pushNs encoding/xml marshal.go typeinfo.go xml.go read.go example & test Go XML Parser type Decoder struct { Strict bool
    0 码力 | 35 页 | 1.34 MB | 1 年前
    3
  • pdf文档 Go 入门指南(The way to Go)

    \n", vc) // {Jan Kersschot [0x126d2b80 0x126d2be0] none}: // JSON format: js, _ := json.Marshal(vc) fmt.Printf("JSON format: %s", js) // using an encoder: file, _ := os.OpenFile("vcard Encode(vc) if err != nil { log.Println("Error in encoding json") } } json.Marshal() 的函数签名是 func Marshal(v interface{}) ([]byte, error) ,下面是数据编码后的 JSON 文本(实际上是一个 []bytes): Go入门指南 - 273 - Laura Lynn 如同 json 包一样,也有 Marshal() 和 UnMarshal() 从 XML 中编码和解码数据;但这个更通用,可以 从文件中读取和写入(或者任何实现了 io.Reader 和 io.Writer 接口的类型) 和 JSON
    0 码力 | 380 页 | 2.97 MB | 1 年前
    3
  • pdf文档 Go 入门指南(The way to Go)

    // {Jan Kersschot [0x126d2b80 0x126d2be0] none}: 29. // JSON format: 30. js, _ := json.Marshal(vc) 31. fmt.Printf("JSON format: %s", js) 32. // using an encoder: 33. file, _ := = nil { 38. log.Println("Error in encoding json") 39. } 40. } json.Marshal() 的函数签名是 func Marshal(v interface{}) ([]byte, error) ,下面是数据编码后的 JSON 文本 (实际上是一个 []byte): 1. { 2. "FirstName": Laura 3. Lynn 4. 如同 json 包一样,也有 Marshal() 和 UnMarshal() 从 XML 中编码和解码数据;但这个更通用,可以从文 件中读取和写入(或者任何实现了 io.Reader 和 io.Writer 接口的类型) 和 JSON
    0 码力 | 466 页 | 4.44 MB | 1 年前
    3
  • mobi文档 Go 101 (Golang 101) v1.21.0

    Println(s) fmt.Println(i) return } } } Please note, the entries in the JSON marshal result on maps are sorted by their keys. And since Go 1.12, printing maps (with the print functions
    0 码力 | 610 页 | 945.17 KB | 1 年前
    3
共 12 条
  • 1
  • 2
前往
页
相关搜索词
GolangManualByAstaXie20120522BuildwebapplicationwithGoWeb编程TheWayTo20122.1主动动式主动式内存缓存优化探索ProgrammingProcessingXMLandSpreadsheetDatain入门指南wayto101v121.0
IT文库
关于我们 文库协议 联系我们 意见反馈 免责声明
本站文档数据由用户上传或本站整理自互联网,不以营利为目的,供所有人免费下载和学习使用。如侵犯您的权益,请联系我们进行删除。
IT文库 ©1024 - 2025 | 站点地图
Powered By MOREDOC AI v3.3.0-beta.70
  • 关注我们的公众号【刻舟求荐】,给您不一样的精彩
    关注我们的公众号【刻舟求荐】,给您不一样的精彩