JIYIK CN >

Current Location:Home > Learning > PROGRAM >

All

Create a new directory in Go

Publish Date:2025/04/15 Author:JIYIK Category:Go

Go has many ways to create directories, one of which is os.Mkdir . We can assign specified names and permission bits to the newly formed directory. os.MkdirAll Useful for recursively creating multiple directories, including any missing pare...

Full

Duration in Go

Publish Date:2025/04/15 Author:JIYIK Category:Go

Go duration conversion can be done in a variety of ways. The time library and the time.duration method are often used to calculate and display time. Note that duration refers to the time elapsed between two defined time objects, as an int64...

Full

Function pointers in Go

Publish Date:2025/04/15 Author:JIYIK Category:Go

A pointer in Go is a special-purpose variable that stores the memory address of other variables and the point where the memory is located. It can also access the value stored in that memory location. Pointer declaration in Go var pointer_na...

Full

Enabling CORS in GoLang

Publish Date:2025/04/15 Author:JIYIK Category:Go

This article describes how to enable and use CORS in GoLang. Go language CORS Cross-origin resource sharing (CORS) is a process based on HTTP headers that defines the origins from which browsers are allowed to load and use resources. CORS i...

Full

GoLang RWMutex Detailed Introduction

Publish Date:2025/04/15 Author:JIYIK Category:Go

This article introduces how to use rwmutex in Go language. Go language RWMutex mutex is the abbreviation of mutual exclusion, which is used to keep track of which thread has accessed a variable at any time. Mutex is a data structure provide...

Full

Install GoLang using Brew

Publish Date:2025/04/15 Author:JIYIK Category:Go

This article describes how to install GoLang using Brew on Linux or macOS. Install GoLang using Brew brew installs missing packages in Linux and macOS. It makes it easy to install GoLang on Linux or macOS. Follow the steps below to install...

Full

React event types in TypeScript

Publish Date:2025/04/15 Author:JIYIK Category:TypeScript

In React, you often need to listen to event listeners that are triggered due to certain operations on certain HTML elements. TypeScript has strong typing support for all events triggered due to certain operations on HTML elements, such as t...

Full

React UseState Hook Types in TypeScript

Publish Date:2025/04/15 Author:JIYIK Category:TypeScript

This article will demonstrate the use of React hooks in TypeScript useState . React useState hook definition React useState hooks play an important role when using functional components, from storing temporary data to receiving data from AP...

Full

Nullable types in TypeScript

Publish Date:2025/04/15 Author:JIYIK Category:TypeScript

In recent TypeScript versions, null and undefined are not readable. However, newer versions support this. This tutorial will discuss the concept of nullable types in TypeScript. Nullable types in TypeScript null Users must turn off type che...

Full

Declaration or statement expected error in TypeScript

Publish Date:2025/04/15 Author:JIYIK Category:TypeScript

This article explains Declaration or statement expected the error in JavaScript or TypeScript and why the compiler throws this error. All the major causes of this error will be discussed, and how to avoid it in the developer community. 预期...

Full

Sleeping in TypeScript

Publish Date:2025/04/15 Author:JIYIK Category:TypeScript

When implementing business logic, you often need to add a delay to a function or sleep for a while waiting for an API call. This article will discuss different ways and concepts of sleeping threads in TypeScript. Using blocking to sleep thr...

Full

Integer types in TypeScript

Publish Date:2025/04/15 Author:JIYIK Category:TypeScript

In TypeScript , there is no concept of integer data types like in other programming languages. Usually, only number type is used to represent floating point numbers. bigint is the latest version of TypeScript, which represents large integer...

Full

Regular expressions in TypeScript

Publish Date:2025/04/15 Author:JIYIK Category:TypeScript

RegExp Is a regular expression used to match a fixed set of characters in a target string using TypeScript. RegExp Objects have many properties and methods. Each property has different options when pattern matching. Using regular expression...

Full

Dictionary or map type in TypeScript

Publish Date:2025/04/15 Author:JIYIK Category:TypeScript

Dictionaries or maps are used to quickly retrieve items from an object. TypeScript does not have any concept of maps or dictionaries. Plain JavaScript has objects that can set and retrieve key-value pairs. TypeScript provides Record types t...

Full

Function return types in TypeScript

Publish Date:2025/04/15 Author:JIYIK Category:TypeScript

TypeScript is a strongly typed language and it is always encouraged to define the types correctly for all variables used in TypeScript. These types can help in development later, especially during debugging. In addition to variables, functi...

Full

Scan to Read All Tech Tutorials

Social Media
  • https://www.github.com/onmpw
  • qq:1244347461

Hottest

Tags

Scan the Code
Easier Access Tutorial