54 place 2

574 XML parsing into generic Map in Golang

Habr
RodionGork @ Habr 1 place · 10/03/2024 04:13 EDT

XML parsing into generic Map in Golang

While in 2024 using XML looks a bit outdated, it still happens. And sometimes it happens we are to deal with XML having "free-structure", i.e. it couldn't be parsed into tree of user-defined structs. For JSON there still is a way to parse it with a single call into map[string]any and work with it using careful type assertions. Regretfully, there is no similar feature for XML (in Golang). Here I'll draft suitable function and demonstrate it - both for others and for myself if I ever need this again (recreati

To see detailed statistics for the news please log in »

Read the original

Add your comment
You must be logged in with Facebook to read and write comments.

A newsletter a day!

You may get 10 most important news around midday in daily newsletter. Press the button and we will send you the most important news only, no spam attached.

or register

LIKE us on Facebook so you won't miss the most important news of the day!

News from the same source
Habr Habr
TechRadar
TechRadar 1 place · today 11:57 EDT

Adobe Firefly is about to make its biggest leap in AI video yet with a new model and Veo 3 integration

Adobe has released a new Firefly video model that's even better at generating AI video, and helping you add creative sound effects. Read more

3,186 fresh

Engadget
Will Shanklin @ Engadget 1 place · today 11:39 EDT

Netflix takes a leap of faith on an Assassin's Creed series

Hollywood video game adaptations continue to have a moment. Following the success of HBO's The Last of Us and Amazon's Fallout, Netflix has officially greenlit an Assassin's Creed series. The news comes nearly five years after the company signed a deal with Ubisoft to adapt the franchise. Two Emmy nominees will helm the series. Roberto Patino (DMZ, Westworld, Sons of Anarchy) and David Wiener (Halo, Homecoming, The Killing) will serve... Read more

2,408 fresh

Business Insider
Jacob Shamsian @ Business Insider 1 place · today 10:37 EDT

Mark Zuckerberg and other Meta executives settle $8 billion privacy lawsuit over Cambridge Analytica, ending trial

Meta shareholders demanded that Mark Zuckerberg and other executives pay them $8 billion for mishandling the privacy of Facebook users. Read more

1,237 fresh

Financial Times
Financial Times 1 place · today 11:18 EDT

Meta board settles Delaware case over multibillion-dollar cost of data breaches

Undisclosed financial agreement ensures figures such as social media chief Mark Zuckerberg will avoid taking the stand Read more

1,234 fresh

MacRumors
Tim Hardwick @ MacRumors 1 place · today 11:37 EDT

Rumor Hints at 'Liquid Glass' iPhone 17 Pro Color Tied to iOS 26 Design

A new rumor out of China today has sparked speculation that Apple may be readying a unique new iPhone 17 Pro color that somehow reflects the new design language of its iOS 26 software. Weibo-based leaker Instant Digital on Thursday hinted that the iPhone 17 Pro has a "special" color variant that is said to be "connected to the iOS 26 Liquid Glass design." The leaker, who only claims to... Read more

1,192 fresh

Tom's Hardware
Tom's Hardware 2 place · today 10:51 EDT

Intel's rumored 'Nova Lake-AX' allegedly packs insane specs but might never launch — reportedly featured 28 CPU cores, 48 Xe3 GPU cores, and an upgraded 256-bit memory bus to counter AMD Strix Halo

Intel’s Nova Lake-AX SoC could mark a major leap for x86 mobile chips, pairing 28 CPU cores with a massive 384-EU Xe3 GPU and LPDDR5X at up to 10,667 MT/s. Aimed at hybrid APU competitors like AMD Strix Halo and Apple M-series, it might never even see the light of day. Read more

1,041 fresh

Business Insider
Jennifer Nied @ Business Insider 2 place · today 10:23 EDT

I left my dream job in New York City to move home to Colorado with my family. Two years later, I have zero regrets.

After working my dream job in New York, I decided to move to my Colorado hometown with my family. We have no regrets and love the proximity to nature. Read more

953 fresh

The Verge
Sean Hollister @ The Verge 1 place · today 11:00 EDT

Lenovo Legion Go S review part two: you were the chosen one!

Valve's Steam Deck has dominated the handheld gaming PC space since its 2022 debut. But even as more powerful Windows handhelds arrived to keep up with more demanding games, none have beaten the Steam Deck's combination of ease-of-use, ergonomics, power, and battery life at an affordable price. That still hasn't changed. The Lenovo Legion Go […] Read more

949 fresh

CNET
Katherine Watt @ CNET 1 place · today 11:36 EDT

July Mortgage Rate Forecast: Buyers Retreat as Rates Rebound

Economic instability and Trump's tariffs continue to weigh on the housing market. Read more

838 fresh

Business Insider
Henry Chandonnet @ Business Insider 3 place · today 09:25 EDT

Listen up, millennials: We asked 7 Gen Zers what they think about the 'Gen Z stare' debate

Young people appear to be split on the viral "Gen Z stare." Some reject the trend entirely, while others say they've seen it firsthand. Read more

727 fresh

TechRadar
TechRadar 3 place · today 11:37 EDT

Mint Mobile vs Ultra Mobile: which multi-month prepaid carrier is the best?

We're breaking down sister carriers Mint Mobile and Ultra Mobile in a head-to-head, which'll come out on top? Read more

637 fresh

Business Insider
Ayelet Sheffey @ Business Insider · today 07:01 EDT

Student-loan borrowers are at high risk if Trump dismantles the Department of Education, 11 organizations told Elizabeth Warren

Education organizations told Sen. Elizabeth Warren that Trump's plans to dismantle the Department of Education will harm student-loan borrowers. Read more

613 fresh

Gizmodo
Luc Olinga @ Gizmodo 2 place · today 09:00 EDT

Wall Street’s AI Bubble Is Worse Than the 1999 Dot-com Bubble, Warns a Top Economist

A chief economist at investment giant Apollo says the top ten AI stocks are more detached from reality than the tech titans of the 1990s were. His chart is a stark warning that history is about to repeat itself. Read more

609 fresh

Wired
Jake Lahut @ Wired 1 place · today 06:30 EDT

Bring On the MAGA Revolt

Donald Trump’s own strategists and advisers aren’t sure the president’s base will survive Jeffrey Epstein’s ghost. Read more

565 fresh

Wired
Makena Kelly @ Wired 2 place · today 07:00 EDT

DOGE Put Free Tax Filing Tool on Chopping Block After One Meeting With Lobbyists

A key operative from DOGE initiated plans to potentially kill Direct File, the free tax filing tool developed by the IRS, after offering assurances it would be spared from cuts. Read more

510 fresh

Business Insider
Emily Hart @ Business Insider · today 10:04 EDT

I've traveled solo to every US national park. These 7 are my favorite hidden gems.

After traveling to all 63 US national parks, I fell in love with places like Isle Royale, New River Gorge, Dry Tortugas, and Capitol Reef. Read more

502 fresh

EU-Startups
David Cendon Garcia @ EU-Startups 1 place · today 11:02 EDT

London-based TRIFFT Loyalty raises €474k to develop their customer loyalty platform

TRIFFT Loyalty, a UK tech startup helping brands cultivate “meaningful emotional connections” with customers, has raised €474k in a pre-Seed funding round to grow their team, embed AI functionality, and expand to the US. The round was led by Lighthouse Ventures, with participation from BD Partners, Gi21 Capital and Koopeo. The company has also confirmed ... Read more

502 fresh

The most popular news from the same source for the last week
Habr Habr
Habr
Kaspersky_Lab («Лаборатория Касперского») @ Habr 1 place · 07/14/2025 23:24 EDT

Security Week 2529: атака Rowhammer реализована на видеокартах

Исследователи из канадского Университета Торонто опубликовали научную работу, в которой показали успешное применение атаки класса Rowhammer на профессиональные видеокарты Nvidia. Атака Rowhammer впервые была показана в 2014 году, она эксплуатирует физические особенности современных микросхем оперативной памяти. Из-за высокой плотности ячеек памяти есть возможность изменять значения в определенных ячейках путем отправления множества запросов по соседним адресам. Такое «простукивание» (отсюда hammer в названи Read more

3

Habr
melanny20 (Postgres Professional) @ Habr 2 place · 07/14/2025 07:30 EDT

[Translation] The performance engineer: a detective licensed to kill… bottlenecks

Picture this: a mission-critical SQL query is crawling along. Not for an hour. Not for two. Fifteen hours. A full workday of the system slowly grinding through data while the business bleeds money and users teeter on the edge of a nervous breakdown. And then — cue the dramatic music — in walks the performance engineer.After a few hours of intense analysis and a couple of pinpoint code tweaks, the... Read more

0

Habr
de-potato (Arenadata) @ Habr 2 place · 07/16/2025 06:06 EDT

Архитектура Neon: как устроен cloud-native PostgreSQL в Kubernetes

Привет, Хабр! Меня зовут Алексей Быков, я занимаюсь развитием cloud-native-платформы для обработки данных Arenadata One (AD.ONE). В этой статье мы поговорим о neon-kubernetes-реализации PostgreSQL, её устройстве, особенностях и о том, почему классический подход к Postgres в Kubernetes не позволяет в полной мере использовать преимущества гибкой облачной инфраструктуры.Тема не новая и активно развивается: уже давно существуют операторы (Zalando, Crunchy Data, CloudNativePG) для автоматизации развёртывания Pos Read more

0

Habr
mironov_vlad @ Habr 2 place · 07/16/2025 11:26 EDT

[Translation] Cheap but functional DYI robot arm

Let’s clarify right away — we’re not aiming to make this super cheap. I’d rather not lose brain cells trying to build makeshift encoders for motors, and I want to simplify creating a 3D model needed for ROS control (link to the finished model — further below). Read more Read more

0

Most popular sources

  • You see 757 news out of 757.
  • Sources 61 out of 61.
Business Insider 28% 16
Wired 15% 23
Gizmodo 11% 2
The Verge 6% 2
CNET 5% 3
View sources »

LIKE us on Facebook so you won't miss the most important news of the day!

17.07.2025 12:29
Last update: 12:21 EDT.
News rating updated: 19:22.

What is Times42?

Times42 brings you the most popular news from tech news portals in real-time chart.
Read about us in FAQ section.


Times42 © 2025