Skip to content

Instantly share code, notes, and snippets.

View Cierra-Runis's full-sized avatar
😎
很酷,不编程

Cierra-Runis Cierra-Runis

😎
很酷,不编程
View GitHub Profile
@Cierra-Runis
Cierra-Runis / main.dart
Created May 10, 2023 22:49
tangled-rose-8335
void main() {
final templateUrl = '{host}/api/v3/{container}/{resourceId}';
final params = <String, dynamic>{
'host': 'www.api.com',
'container': 'books',
'resourceId': 10
};
print(templateUrl.asTemplate(params)); // www.api.com/api/v3/books/10