IT Log

Record various IT issues and difficulties.

Tag: Go


  • “Functions in Go: A Comprehensive Exploration from Fundamentals to Advanced Concepts”

    Contents 1. Go Function Basics 1.1 Function Definition and Declaration Basic Function Structure Return Value Types and Named Returns 1.2 Parameter Passing Methods Value Passing Reference Passing 2. Go Special Function Types 2.1 Variable Argument Functions Definition and Usage of Variable Arguments Limitations of Variable Arguments 2.2 Anonymous Functions and Lambda Expressions What Are Anonymous…


  • How to Connect Frontend and Go Backend

    To connect your frontend with a Go backend, follow these organized steps: Set Up the Go Backend: Create a new Go project and initialize it. Use net/http package to handle HTTP requests. Set up an HTTP server using http.ListenAndServe. Create API Endpoints: Define routes for different HTTP methods (GET, POST, etc.) using functions that handle…