Skip to content

Commit

Permalink
chore: rename golang dirs to go
Browse files Browse the repository at this point in the history
  • Loading branch information
A-Najmabadi committed Dec 11, 2024
1 parent 32fcd92 commit 9b52c45
Show file tree
Hide file tree
Showing 61 changed files with 189 additions and 189 deletions.
32 changes: 16 additions & 16 deletions liara_nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -481,32 +481,32 @@ location ~ ^/app-deploy/docker/compose/?$ {
return 301 /paas/docker/how-tos/deploy-docker-compose;
}

# Golang
location ~ ^/app-deploy/golang/(browser|cli|getting-started)/?$ {
# go
location ~ ^/app-deploy/go/(browser|cli|getting-started)/?$ {
return 301 /paas/docker/related-apps/go;
}

location ~ ^/app-deploy/golang/envs/?$ {
location ~ ^/app-deploy/go/envs/?$ {
return 301 /paas/details/envs;
}

location ~ ^/app-deploy/golang/logs/?$ {
location ~ ^/app-deploy/go/logs/?$ {
return 301 /paas/details/observations/software;
}

location ~ ^/app-deploy/golang/liarajson/?$ {
location ~ ^/app-deploy/go/liarajson/?$ {
return 301 /paas/docker/quick-start;
}

location ~ ^/app-deploy/golang/disks/?$ {
location ~ ^/app-deploy/go/disks/?$ {
return 301 /paas/docker/how-tos/use-disk;
}

location ~ ^/app-deploy/golang/object-storage/?$ {
return 301 /object-storage/how-tos/connect-via-platform/golang;
location ~ ^/app-deploy/go/object-storage/?$ {
return 301 /object-storage/how-tos/connect-via-platform/go;
}

location ~ ^/app-deploy/golang/email/?$ {
location ~ ^/app-deploy/go/email/?$ {
return 301 /email-server/how-tos/connect-via-platform/go;
}

Expand Down Expand Up @@ -1263,7 +1263,7 @@ location ~ ^/one-click-apps/wordpress/how-tos/enable-wprocket-extension/?$ {
return 301 /one-click-apps/wordpress/quick-start;
}

location ~ ^/app-deploy/golang/dbs/?$ {
location ~ ^/app-deploy/go/dbs/?$ {
return 301 /paas/docker/related-apps/go;
}

Expand Down Expand Up @@ -1463,7 +1463,7 @@ location ~ ^/instructions/nextjs/?$ {
return 301 /paas/nextjs/getting-started;
}

location ~ ^/instructions/golang/?$ {
location ~ ^/instructions/go/?$ {
return 301 /paas/docker/related-apps/go;
}

Expand Down Expand Up @@ -1679,7 +1679,7 @@ location ~ ^/instructions/jekyll/?$ {
return 301 /paas/static/related-apps/jekyll/;
}

location ~ ^/email-server/how-tos/connect-via-platform/golang/?$ {
location ~ ^/email-server/how-tos/connect-via-platform/go/?$ {
return 301 /email-server/how-tos/connect-via-platform/go/;
}

Expand Down Expand Up @@ -1791,7 +1791,7 @@ location ~ ^/one-click-apps/meilisearch/how-tos/quick-start/?$ {
return 301 /one-click-apps/meilisearch/quick-start/;
}

location ~ ^/app-deploy/golang/desktop/?$ {
location ~ ^/app-deploy/go/desktop/?$ {
return 301 /paas/docker/related-apps/go/;
}

Expand Down Expand Up @@ -1935,14 +1935,14 @@ location ~ ^/client-api/database/?$ {
return 301 /references/api/about/;
}

# golang platform
# go platform

location ~ ^/paas/docker/related-apps/go?$ {
return 301 /paas/golang/getting-started/;
return 301 /paas/go/getting-started/;
}

location ~ ^/paas/go/(.*)$ {
return 301 /paas/golang/$1;
return 301 /paas/go/$1;
}


Expand Down
84 changes: 42 additions & 42 deletions src/components/Sidebar/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ export default {
{
title: "Go",
icon: <IconContainer alt="go" />,
link: "/paas/golang/getting-started"
link: "/paas/go/getting-started"
},
{
title: "React",
Expand Down Expand Up @@ -384,7 +384,7 @@ export default {
{
title: "Go",
icon: <IconContainer alt="go" />,
link: "/paas/golang/getting-started"
link: "/paas/go/getting-started"
},
{
title: "React",
Expand Down Expand Up @@ -521,7 +521,7 @@ export default {
{
title: "Go",
icon: <IconContainer alt="go" />,
link: "/paas/golang/getting-started"
link: "/paas/go/getting-started"
},
{
title: "React",
Expand Down Expand Up @@ -658,7 +658,7 @@ export default {
{
title: "Go",
icon: <IconContainer alt="go" />,
link: "/paas/golang/getting-started"
link: "/paas/go/getting-started"
},
{
title: "React",
Expand Down Expand Up @@ -2554,7 +2554,7 @@ export default {
link: "/paas/dotnet/fix-common-errors/cors"
},
],
golang: [
go: [
{
badge: (
<div className="flex items-center gap-2">
Expand All @@ -2571,17 +2571,17 @@ export default {
{
title: "شروع به کار",
icon: <GoFlame />,
link: "/paas/golang/getting-started"
link: "/paas/go/getting-started"
},
{
title: "استقرار سریع!",
icon: <GoZap />,
link: "/paas/golang/quick-start"
link: "/paas/go/quick-start"
},
{
title: "لینک‌های مرتبط",
icon: <GoMegaphone />,
link: "/paas/golang/related-links"
link: "/paas/go/related-links"
},
{
hr: true
Expand All @@ -2596,71 +2596,71 @@ export default {
},
{
title: "ساخت برنامه",
link: "/paas/golang/how-tos/create-app"
link: "/paas/go/how-tos/create-app"
},
{
title: "استقرار برنامه",
link: "/paas/golang/how-tos/deploy-app"
link: "/paas/go/how-tos/deploy-app"
},
{
title: "استفاده از متغیرهای محیطی",
link: "/paas/golang/how-tos/set-envs"
link: "/paas/go/how-tos/set-envs"
},
{
title: "استفاده از دیسک",
link: "/paas/golang/how-tos/use-disk"
link: "/paas/go/how-tos/use-disk"
},
// {
// title: "استفاده از Supervisord",
// link: "/paas/golang/how-tos/use-supervisord"
// link: "/paas/go/how-tos/use-supervisord"
// },
// {
// title: "استفاده از ماژول FFMPEG",
// link: "/paas/golang/how-tos/use-ffmpeg-module"
// link: "/paas/go/how-tos/use-ffmpeg-module"
// },
// {
// title: "تنظیم Nginx",
// link: "/paas/golang/how-tos/customize-nginx"
// link: "/paas/go/how-tos/customize-nginx"
// },
// {
// title: "فعال‌سازی قابلیت gzip",
// link: "/paas/golang/how-tos/enable-gzip"
// link: "/paas/go/how-tos/enable-gzip"
// },
{
title: "استفاده از Hookها",
link: "/paas/golang/how-tos/use-hooks"
link: "/paas/go/how-tos/use-hooks"
},
{
title: "استفاده از قابلیت cgo",
link: "/paas/golang/how-tos/use-cgo"
link: "/paas/go/how-tos/use-cgo"
},
{
title: "تنظیم Cron Job",
link: "/paas/golang/how-tos/set-cron-job"
link: "/paas/go/how-tos/set-cron-job"
},
{
title: "تغییر نسخه go",
link: "/paas/golang/how-tos/choose-version"
link: "/paas/go/how-tos/choose-version"
},
{
title: "راه‌اندازی برنامه WebSocket",
link: "/paas/golang/how-tos/use-websocket"
link: "/paas/go/how-tos/use-websocket"
},
// {
// title: "تنظیم تعداد workerهای Gunicorn",
// link: "/paas/golang/how-tos/set-gunicorn-workers"
// link: "/paas/go/how-tos/set-gunicorn-workers"
// },
// {
// title: "تنظیم max_request در Gunicorn",
// link: "/paas/golang/how-tos/set-gunicorn-maxrequest"
// link: "/paas/go/how-tos/set-gunicorn-maxrequest"
// },
// {
// title: "تنظیم هدرهای امنیتی HTTP",
// link: "/paas/golang/how-tos/set-http-security-headers"
// link: "/paas/go/how-tos/set-http-security-headers"
// },
{
title: "تنظیم لاگ‌ها",
link: "/paas/golang/how-tos/set-logs"
link: "/paas/go/how-tos/set-logs"
},
{
hr: true
Expand All @@ -2669,44 +2669,44 @@ export default {
badge: (
<div className="flex items-center gap-2">
<GoDatabase />
<Link href="/paas/golang/how-tos/connect-to-db/about">اتصال به دیتابیس </Link>
<Link href="/paas/go/how-tos/connect-to-db/about">اتصال به دیتابیس </Link>
</div>
)
},
{
title: "دیتابیس MySQL/MariaDB",
icon: <IconContainer alt="mysql" />,
link: "/paas/golang/how-tos/connect-to-db/mysql"
link: "/paas/go/how-tos/connect-to-db/mysql"
},
{
title: "دیتابیس MSSQL",
icon: <IconContainer alt="mssql" />,
link: "/paas/golang/how-tos/connect-to-db/mssql"
link: "/paas/go/how-tos/connect-to-db/mssql"
},
{
title: "دیتابیس PostgreSQL",
icon: <IconContainer alt="postgres" />,
link: "/paas/golang/how-tos/connect-to-db/postgresql"
link: "/paas/go/how-tos/connect-to-db/postgresql"
},
{
title: "دیتابیس SQLite",
icon: <IconContainer alt="sqlite" />,
link: "/paas/golang/how-tos/connect-to-db/sqlite"
link: "/paas/go/how-tos/connect-to-db/sqlite"
},
{
title: "دیتابیس MongoDB",
icon: <IconContainer alt="mongodb" />,
link: "/paas/golang/how-tos/connect-to-db/mongodb"
link: "/paas/go/how-tos/connect-to-db/mongodb"
},
{
title: "دیتابیس Redis",
icon: <IconContainer alt="redis" />,
link: "/paas/golang/how-tos/connect-to-db/redis"
link: "/paas/go/how-tos/connect-to-db/redis"
},
{
title: "دیتابیس ElasticSearch",
icon: <IconContainer alt="elastic" />,
link: "/paas/golang/how-tos/connect-to-db/elastic-search"
link: "/paas/go/how-tos/connect-to-db/elastic-search"
},

// {
Expand All @@ -2716,7 +2716,7 @@ export default {
// badge: (
// <div className="flex items-center gap-2">
// <GoBug />
// <Link href="/paas/golang/fix-common-errors/about">رفع خطاهای رایج</Link>
// <Link href="/paas/go/fix-common-errors/about">رفع خطاهای رایج</Link>
// </div>
// )
// },
Expand All @@ -2733,23 +2733,23 @@ export default {
},
{
title: "Gin",
icon: <IconContainer alt="https://files.liara.ir/liara/golang/go-gin.ico" />,
link: "/paas/golang/related-apps/gin"
icon: <IconContainer alt="https://files.liara.ir/liara/go/go-gin.ico" />,
link: "/paas/go/related-apps/gin"
},
{
title: "Beego",
icon: <IconContainer alt="https://files.liara.ir/liara/golang/beego.ico" />,
link: "/paas/golang/related-apps/beego"
icon: <IconContainer alt="https://files.liara.ir/liara/go/beego.ico" />,
link: "/paas/go/related-apps/beego"
},
{
title: "Echo",
icon: <IconContainer alt="https://files.liara.ir/liara/golang/echo-icon.png" />,
link: "/paas/golang/related-apps/echo"
icon: <IconContainer alt="https://files.liara.ir/liara/go/echo-icon.png" />,
link: "/paas/go/related-apps/echo"
},
{
title: "Fiber",
icon: <IconContainer alt="https://files.liara.ir/liara/golang/fiber-icon.ico" />,
link: "/paas/golang/related-apps/fiber"
icon: <IconContainer alt="https://files.liara.ir/liara/go/fiber-icon.ico" />,
link: "/paas/go/related-apps/fiber"
},
],
react: [
Expand Down
2 changes: 1 addition & 1 deletion src/pages/dbaas/about.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ import Head from "next/head";
<div className="grid md:grid-cols-4 gap-4">
{[
{ alt: 'go', platform: 'Golang', link: "/paas/docker/related-apps/go" },
{ alt: 'go', platform: 'go', link: "/paas/docker/related-apps/go" },
{ alt: 'nginx', platform: 'Nginx', link: "/paas/docker/related-apps/nginx" },
{ alt: 'streamlit', platform: 'Streamlit', link: "/paas/docker/related-apps/streamlit" },
{ alt: 'fastapi', platform: 'FastAPI', link: "/paas/docker/related-apps/fastapi" },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ import Head from "next/head";
// link: "./dotnet"
// },
{
title: "Golang",
title: "Go",
icon: "go",
link: "./go"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ import Head from "next/head";

<Layout>
<Head>
<title>مستندات اتصال به ElasticSearch در Golang - لیارا</title>
<title>مستندات اتصال به ElasticSearch در go - لیارا</title>
<meta property="og:title" content="مستندات خدمات رایانش ابری لیارا" />
<meta property="og:description" content="مستندات قدم به قدم اتصال با Golang به دیتابیس ElasticSearch" />
<meta property="og:description" content="مستندات قدم به قدم اتصال با go به دیتابیس ElasticSearch" />
<meta property="og:image" content="https://files.liara.ir/liara/logos/liara-poster.jpg" />
</Head>
# اتصال به دیتابیس ElasticSearch در برنامه‌های Golang
# اتصال به دیتابیس ElasticSearch در برنامه‌های go
<hr className="mb-2" />

برای اتصال به دیتابیس ElasticSearch در برنامه‌های Golang، در ابتدا باید ماژول‌های مربوط به آن‌را با اجرای دستورات زیر، نصب کنید:
برای اتصال به دیتابیس ElasticSearch در برنامه‌های go، در ابتدا باید ماژول‌های مربوط به آن‌را با اجرای دستورات زیر، نصب کنید:

<div className="h-2" />
<div dir='ltr'>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ import Head from "next/head";
link: "./dotnet"
},
{
title: "Golang",
title: "go",
icon: "go",
link: "./go"
},
Expand Down
Loading

0 comments on commit 9b52c45

Please sign in to comment.