Skip to content

LinJ0866/pcb-go-detect_service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PCB-预测集群管理服务

Powered by Function graph of Huawei cloud

Pre

prepare the .env file in the root dictionary:

CONFIG_APPMODE=release     # app mode: release or debug
CONFIG_PORT=:8000          # server port
CONFIG_MYSQL_ADDRESS=###   # Mysql url
CONFIG_MYSQL_PORT=###      # Mysql port 
CONFIG_MYSQL_USER=###      # Mysql username
CONFIG_MYSQL_PASS=###      # Mysql password
CONFIG_MYSQL_DBNAME=###    # Mysql database name
CONFIG_QINIU_AK=###        # qiniu cloud AK
CONFIG_QINIU_SK=###        # qiniu cloud SK
CONFIG_APIURL=###          # api gateway url
CONFIG_TIMEOUT=30         # timeout config of detect service (second)

run the code

go run main.go

Build

Tutorial written by huawei

configure the linux:amd64 environment

set GOARCH=amd64
go env -w GOARCH=amd64
set GOOS=linux
go env -w GOOS=linux

build

# go build -o [目标可执行程序] [源程序]
# 
go build -o go-http-demo main.go

restore the environment configuration

set GOARCH=amd64
go env -w GOARCH=amd64
set GOOS=windows
go env -w GOOS=windows

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published