<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Source Code on seth-shi</title><link>https://sethix.com/tags/source-code/</link><description>Recent content in Source Code on seth-shi</description><generator>Hugo -- gohugo.io</generator><language>en</language><lastBuildDate>Wed, 25 Aug 2021 18:47:28 +0800</lastBuildDate><atom:link href="https://sethix.com/tags/source-code/index.xml" rel="self" type="application/rss+xml"/><item><title>Analyzing How GoFrame Dynamically Loads Configuration Files and the Invocation of runtime.Caller</title><link>https://sethix.com/posts/2021082518/</link><pubDate>Wed, 25 Aug 2021 18:47:28 +0800</pubDate><guid>https://sethix.com/posts/2021082518/</guid><description>According to the official documentation:
Default Directory Configuration
When initializing the gcfg configuration management object, it automatically adds the following configuration file search directories by default:
Current working directory and its config subdirectory: e.g., /home/www and /home/www/config when working in /home/www Executable file directory and its config subdirectory: e.g., /tmp and /tmp/config for a binary in /tmp Main package directory and its config subdirectory (only effective in source development): e.g., /home/john/workspace/gf-app and /home/john/workspace/gf-app/config for a main package in that directory During development, the configuration file can always be found correctly through the main package location regardless of binary relocation.</description></item><item><title>PHP Source Code Reading</title><link>https://sethix.com/posts/2021080310/</link><pubDate>Tue, 03 Aug 2021 10:51:57 +0800</pubDate><guid>https://sethix.com/posts/2021080310/</guid><description>Getting Started (Environment Setup) Create a project directory and add Dockerfile FROM centos:7 # Install dependencies RUN yum -y install gcc gcc-c++ gdb autoconf libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel zlib zlib-devel glibc glibc-devel glib2 glib2-devel bzip2 bzip2-devel ncurses ncurses-devel curl curl-devel e2fsprogs e2fsprogs-devel krb5 krb5-devel libidn libidn-devel openssl openssl-devel openldap openldap-devel nss_ldap openldap-clients openldap-servers gd gd2 gd-devel gd2-devel perl-CPAN pcre-devel libicu-devel wget # Download specific PHP version RUN wget -O /tmp/php.</description></item></channel></rss>