摘要: Cargo.toml: [package] name = "demo" version = "0.1.0" edition = "2021" [dependencies] serde = { version = "1.0.204", features = ["derive"] } ntex = { 阅读全文
posted @ 2024-07-23 00:22 卓能文 阅读(1) 评论(0) 推荐(0) 编辑
摘要: Cargo.toml: [package] name = "demo" version = "0.1.0" edition = "2021" [dependencies] bytes = "1.6.1" may = "0.3.45" may_minihttp = { git = "https://g 阅读全文
posted @ 2024-07-22 22:57 卓能文 阅读(1) 评论(0) 推荐(0) 编辑
摘要: Cargo.toml: [dependencies] serde = {version = "1.0.204", features = ["derive"]} serde_json = "1.0.120" main.rs: use serde::{Deserialize, Serialize}; u 阅读全文
posted @ 2024-07-22 21:46 卓能文 阅读(1) 评论(0) 推荐(0) 编辑
摘要: index.ts: // this becomes an internal file path import html from "./index.html" with { type: "file" }; import { file } from "bun"; export default { fe 阅读全文
posted @ 2024-07-21 23:20 卓能文 阅读(1) 评论(0) 推荐(0) 编辑
摘要: import { Elysia } from 'elysia' const app = new Elysia() .get('/ok', function* () { yield 1 yield 2 yield 3 }) .listen(3000) 阅读全文
posted @ 2024-07-21 09:10 卓能文 阅读(2) 评论(0) 推荐(0) 编辑
摘要: server.ts: import { serve } from "bun"; const id = Math.random().toString(36).slice(2); serve({ port: process.env.PORT || 8080, development: false, // 阅读全文
posted @ 2024-07-21 08:28 卓能文 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 创建src/index.html: <!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1 阅读全文
posted @ 2024-07-20 16:41 卓能文 阅读(1) 评论(0) 推荐(0) 编辑
摘要: package main import ( "embed" "io/fs" "net/http" ) //go:embed all:dist var assets embed.FS func Assets() (fs.FS, error) { return fs.Sub(assets, "dist" 阅读全文
posted @ 2024-07-17 22:47 卓能文 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 更多信息参见主页:https://www.marticliment.com/unigetui/ 阅读全文
posted @ 2024-07-12 16:40 卓能文 阅读(3) 评论(0) 推荐(0) 编辑
摘要: $input_path = "D:\wps" $output_path = "D:\pdf" $wps = New-Object -ComObject KWPS.Application $Format = [Microsoft.Office.Interop.Word.WdSaveFormat]::w 阅读全文
posted @ 2024-07-07 00:26 卓能文 阅读(2) 评论(0) 推荐(0) 编辑